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

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

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -