# Change Set

LLMS index: [llms.txt](https://docs.e.samsungsdscloud.com/en/userguide/management/llms.txt)

---

# 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 {#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<ul><li>changes the physical ID, which may cause service interruption</li></ul> |
| Delete | Resources 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 {#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<ul><li>Occurs when there is a template error or no changes</li></ul> |
| 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 |

_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.


| 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 |

_Table. Change set execution status_


# Deployment Verification {#validation}

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 |

_Table. Deployment verification items_


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. |

_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 {#execute}

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](/en/userguide/management/infrastructure_builder/overview/stack/#rollback).
