The page has been translated by Gen AI.

Change Set

Change Set

A change set is a feature that lets you preview the changes that will occur before updating a stack. It provides an analysis of how resources will change by comparing the current stack state with the newly applied template.

A stack begins deploying immediately upon creation, whereas a change set allows you to control when to execute it after creation. Because you can review and approve changes before applying them at your desired time, you can use this as a safeguard to prevent service outages caused by minor errors.

Change Type

A change set compares the currently deployed resources with the definitions in the new template, analyzes resource existence, property values, and dependencies, and then determines the type of change.

Change TypeDescription
AddNewly created resources
ModifyA resource whose properties are changed while the existing resource is retained
ReplaceDeleting existing resources and creating new ones
  • changes the physical ID, which may cause service interruption
DeleteResources to be removed
Table. Change types of the change set
Warning
Resources identified as Replace are deleted and recreated, which may result in data loss or service interruption. Before running a change set, always verify the resources to be replaced and back them up if necessary.

Change Set Status

The status of the change set is as follows.

StatusDescription
Create PendingChange set creation is pending
CreatingComparing the template with the current stack to analyze changes
Create CompletedThe change set has been created, and you can review the list of resources to be changed.
Create FailedFailed to create the change set
  • Occurs when there is a template error or no changes
Delete PendingChange set deletion request is pending
DeletingDeleting the change set
Delete CompletedThe change set has been successfully deleted
Delete FailedFailed to delete the change set
Table. Change Set Status

Whether execution and deletion are available depends on the status of the change set.

  • Run Change Set: Available only when the change set status is Create Completed and the execution status is Available.
  • Delete Change Set: Available when the status is Create Pending, Create Failed, or Delete Failed, or when the status is Create Completed and the execution status is Unavailable, Available, Execute Failed, or Obsolete.

A change set has an execution status in addition to its status. The execution status of the change set is as follows.

StatusDescription
UnavailableNot executable
AvailableReady to run
Execute In ProgressRunning
Execute CompletedExecution completed
Execute FailedFailed execution status
ObsoleteNo longer valid
Table. Change set execution status

Deployment Verification

Deployment verification is a feature that pre-validates whether a change set is in an actually executable state. It goes beyond showing what has changed to also assess whether the deployment is feasible and what risks are involved.

The verification items are as follows.

Verification ItemsDescription
Syntax ValidationCheck for JSON/YAML syntax errors and missing required fields
Resource Schema ValidationVerify the existence of the resource type, the type and format of its properties, and the required properties.
Change Impact AnalysisAnalyze resources that are created, modified, deleted, or replaced, and determine the possibility of interruption.
Reference Integrity VerificationCheck whether it references a non-existent resource
Table. Deployment verification items

Verification results are provided in the following three grades.

GradeDescription
Ready to deployNo errors, only minor warnings
Conditionally possibleExecution is possible, but risks or warnings are present, requiring confirmation.
Deployment not possibleA state where execution is not possible due to reference errors, etc.
Table. Deployment verification result grade
Reference
  • Even if a deployment passes validation, it may still fail due to resource state or capacity shortages at the time of deployment.

Run Change Set

After reviewing the change set, run it to apply the changes to the stack. You can specify how to handle deployment failures each time it runs.

For details on execution options, see Automatic Rollback.

Stack
Stack Set