Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I'd like to create CloudFormation stack with resources in multiple regions. Is this possible?

Is it possible to create a single Amazon CloudFormation stack template that instantiates an AWS::EC2::Instance in ap-southeast-1 and another AWS::EC2::Instance in us-west-2 for example?

I suspect not, but I've not yet found a definitive yes/no saying that stacks can't have resources spanning multiple regions.

like image 836
TaylorMonacelli Avatar asked Feb 16 '15 04:02

TaylorMonacelli


People also ask

Can CloudFormation create resources in another region?

A single CloudFormation stack can only have resources in the single region that the stack resides. However, using CloudFormation Stack Sets, you can create resources across multiple CloudFormation stacks in multiple regions and AWS accounts.

Can CloudFormation deploy to multiple regions?

You can now deploy CloudFormation Stacks concurrently across multiple AWS regions using AWS CloudFormation StackSets. AWS CloudFormation StackSets announces the ability to deploy CloudFormation Stacks to multiple AWS regions in parallel.

Is CloudFormation template region specific?

AWS CloudFormation Supports Multiple Account and Region Provisioning with StackSet. AWS CloudFormation has launched a new feature called StackSet that lets you provision a common set of AWS resources across multiple accounts and regions with a single CloudFormation template.

How do you specify a region in CloudFormation?

You can select the AMI ID that your stack uses by using an input parameter ( EnvironmentType ). To determine the region, use the AWS::Region pseudo parameter, which gets the AWS Region in which you create the stack.


1 Answers

The accepted answer is out of date. It is now possible to create stacks across accounts and regions using CloudFormation StackSets.

like image 130
Ian Stewart Avatar answered Sep 28 '22 05:09

Ian Stewart