amazon web services - Create CloudFormation resources in different region -


i've cf stack , i've defined different resources. 1 of these s3 bucket. need run stack in eu-west-1 region while create bucket in ap-southeast-1 region. how can this?

unfortunately impossible using standard aws::s3::bucket in cloudformation, since resources managed cloudformation stack can reside in same region stack itself. however, work way around using lambda function

your lambda function have set locationconstraint ap-southeast-1 when creating bucket. also, lambda function responsible updating , deleting bucket, can involve bit more code.

you can wire lambda function cloudformation using lambda-backed custom resources.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -