FoxuTech

How to Create CloudFormation Stack using Change Sets – Part 7

How to Create CloudFormation Stack using Change Sets

To preview how a AWS CloudFormation stack will be configured before creating the stack, create a change set. This functionality allows you to examine various configurations and make corrections and changes to your stack before executing the change set.

Creating a Change Set for a New Stack

To create a change set for a new stack, submit the configuration that you want to use by providing a template, input parameter values, or both.

To create a change set (console)

  1. In the AWS CloudFormation console, choose Create Stack, and then choose Create Change Set for New Stack.

If your template is stored in a versioning-enabled bucket, you can specify a specific version, for example: https://s3.amazonaws.com/templates/myTemplate.template?versionId=123ab1cdeKdOW5IH4GAcYbEngcpTJTDW

For more information, see Managing Objects in a Versioning-Enabled Bucket in the Amazon Simple Storage Service Console User Guide.

When you finish, choose Next.

If the template includes AWS Identity and Access Management (IAM) resources, select I acknowledge that this template may create IAM resources to acknowledge that AWS CloudFormation might create IAM resources if you execute this change set. IAM resources can modify permissions in your AWS account. Review these resources to ensure that you allow the correction actions. For more information, see Controlling Access with AWS Identity and Access Management.

When you finish, choose Create change set.

While AWS CloudFormation begins to create the change set, the status of the change set is CREATE_IN_PROGRESS. When AWS CloudFormation completes the creation progress, it sets its status to CREATE_COMPLETE. In the Changes section, AWS CloudFormation lists the proposed configuration of your stack.

If AWS CloudFormation fails to create the change set and reports the CREATE_FAILED status, fix the error displayed in the Status field, and then create a new change set. At this stage, you can try various configurations and make corrections and changes to your stack before executing the next change set.

When you create a change set, AWS CloudFormation launches a stack and reports the REVIEW_IN_PROGRESS status until you execute the change set.

Exit mobile version