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.
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.
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.
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.
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.
The accepted answer is out of date. It is now possible to create stacks across accounts and regions using CloudFormation StackSets.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With