amazon web services - Reference an existing AWS VPC Id in CloudFormation script when creating subnets -



amazon web services - Reference an existing AWS VPC Id in CloudFormation script when creating subnets -

how reference vpc id of existing vpc (which has been created before in separate cloudformation script) in cloudformation script in order create subnets in vpc?

in template defining vpc, include vpc id in outputs section:

"outputs" : { "vpc" : { "value" : {"ref":"vpc"}, "description" : "vpc id" }, ... }

in template stack using vpc, define parameter vpc id:

"parameters" : { "vpc" : { "type" : "string", }, ... }

when creating stack, phone call describe-stack on vpc-defining stack id outputs, , pass vpc parameter create-stack.

amazon-web-services subnet vpc

Comments

Popular posts from this blog

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -