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 Type | Description |
|---|---|
| Add | Newly created resources |
| Modify | A resource whose properties are changed while the existing resource is retained |
| Replace | Deleting existing resources and creating new ones
|
| Delete | Resources to be removed |
Change Set Status
The status of the change set is as follows.
| Status | Description |
|---|---|
| Create Pending | Change set creation is pending |
| Creating | Comparing the template with the current stack to analyze changes |
| Create Completed | The change set has been created, and you can review the list of resources to be changed. |
| Create Failed | Failed to create the change set
|
| Delete Pending | Change set deletion request is pending |
| Deleting | Deleting the change set |
| Delete Completed | The change set has been successfully deleted |
| Delete Failed | Failed to delete the change set |
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.
| Status | Description |
|---|---|
| Unavailable | Not executable |
| Available | Ready to run |
| Execute In Progress | Running |
| Execute Completed | Execution completed |
| Execute Failed | Failed execution status |
| Obsolete | No longer valid |
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 Items | Description |
|---|---|
| Syntax Validation | Check for JSON/YAML syntax errors and missing required fields |
| Resource Schema Validation | Verify the existence of the resource type, the type and format of its properties, and the required properties. |
| Change Impact Analysis | Analyze resources that are created, modified, deleted, or replaced, and determine the possibility of interruption. |
| Reference Integrity Verification | Check whether it references a non-existent resource |
Verification results are provided in the following three grades.
| Grade | Description |
|---|---|
| Ready to deploy | No errors, only minor warnings |
| Conditionally possible | Execution is possible, but risks or warnings are present, requiring confirmation. |
| Deployment not possible | A state where execution is not possible due to reference errors, etc. |
- 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.