Cloudformation Templates for Multiple Accounts | AWS Certified Developer Exam

Streamline Cloudformation Template Creation Across Multiple AWS Accounts

Prev Question Next Question

Question

You are part of a development team that is in charge of creating Cloudformation templates.

These templates need to be created across multiple accounts with the least amount of effort.

Which of the following would assist in accomplishing this?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Answer - B.

The AWS Documentation mentions the following.

AWS CloudFormation StackSets extends the functionality of stacks by enabling you to create, update, or delete stacks across multiple accounts and regions with a single operation.

Using an administrator account, you define and manage an AWS CloudFormation template and use the template as the basis for provisioning stacks into selected target accounts across specified regions.

Option A is incorrect since this is used to make changes to the running resources in a stack.

Option C is incorrect since these are stacks created as part of other stacks.

Option D is incorrect since this is used in conjunction with Code Pipeline.

For more information on Stack Sets, please refer to the below URL-

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/what-is-cfnstacksets.html

The best solution for creating CloudFormation templates across multiple accounts with the least amount of effort is to use CloudFormation StackSets.

CloudFormation StackSets is a feature that allows you to create, update, or delete CloudFormation stacks across multiple accounts and regions with a single CloudFormation template. StackSets simplify the management of stacks and resources across multiple accounts by automating the deployment process, making it easier to manage and maintain infrastructure resources.

By using StackSets, you can define a single CloudFormation template and deploy it across multiple accounts and regions simultaneously. This eliminates the need to create and manage templates for each account individually, saving time and effort. StackSets also allow you to control the deployment of stacks across accounts, including the order in which stacks are deployed and updated.

Creating CloudFormation ChangeSets is a feature that allows you to preview changes to a stack before implementing them. ChangeSets can be used to review the changes that will be made to a stack before actually implementing them. While ChangeSets can be useful for reviewing and testing changes, they do not provide the same level of automation and management across multiple accounts and regions as StackSets.

Nested stacks are another CloudFormation feature that allows you to create stacks within other stacks. This can be useful for organizing and managing complex infrastructure resources, but it does not provide the same level of automation and management across multiple accounts and regions as StackSets.

CloudFormation artifacts are used to package and deploy code and resources for use with CloudFormation. While artifacts can be useful for deploying code and resources, they do not provide the same level of automation and management across multiple accounts and regions as StackSets.

In summary, the best solution for creating CloudFormation templates across multiple accounts with the least amount of effort is to use CloudFormation StackSets. StackSets simplify the management of stacks and resources across multiple accounts by automating the deployment process and making it easier to manage and maintain infrastructure resources.