# Manage Change Sets

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

---

Users can review stack changes in advance using a change set and apply them at the desired time.

# Create a change set {#create}

You can generate a change set to analyze the changes to be applied to the stack.
To create a change set, follow these steps.

1. **All Services > Management > Infrastructure Builder** Click the menu. Go to the **Service Home** page.
2. On the **Service Home** page, click the **Stack > Stack List** menu. Go to the **Stack List** page.
3. On the **Stack List** page, click the stack you want to change. **Stack Details** navigate to the page.
4. On the **Stack Details** page, click the **Create Change Set** button. Go to the **Create Change Set** page.
    * On the **Stack List** page, you can also select **Create Change Set** from the stack's more options (⋮) menu.
5. In the **Enter Basic Information** step, after entering the basic information of the change set, click the **Next** button.

| Category | Detailed description |
|---------|--------|
| Change set name | Enter a name to identify the change set<ul><li>Enter using English letters, numbers, and special characters (-) with a length of 1-128 characters</li></ul> |
| Template replacement | Select a template to compare<ul><li>**Use existing template**: Use the current stack's template as is and only change the parameters</li></ul><ul><li>**Change template**: Specify a new template</li></ul> |
| How to select a template | Select a method to specify the template when changing the template<ul><li>**Object Storage URL**: Enter the storage bucket URL</li></ul><ul><li>**Select file**: Upload template file</li></ul> |
| Explanation | Enter description for the change set<ul><li>Maximum 50 characters</li></ul> |
| tag | Enter tags to apply to the change set<ul><li>up to 50</li></ul><ul><li>The configured tags are propagated to resources created by the stack, and managed tags are added</li></ul> |

_Table. Change Set Basic Information Items_

6. **Parameter Setting** step, after entering the values of the parameters defined in the template, click the **Next** button.
    * Parameters are supported up to a maximum of 200.
    * If the template includes creating IAM resources, you must agree to the **Approve creation of IAM resources in Infrastructure Builder** item to proceed to the next step.
7. After setting the options in the **Stack option configuration** step, click the **Next** button.

| Category | Detailed description |
|---------|--------|
| Permission | Select the IAM role to use when executing the change set<ul><li>**Use existing role**: Use the previously specified role (default)</li></ul><ul><li>**Change IAM role**: Select a different IAM role</li></ul><ul><li>If no IAM role is selected, the operation will be performed using delegated user permissions</li></ul> |
| Create a change set for a nested set | Choose whether to generate a change set for all nested stacks specified in the template<ul><li>Enable/Disable</li></ul> |

_Table. Change set stack option items_

    * You cannot modify the stack policy when creating a change set.
8. In the **Notification Settings** step, after selecting the notification group, click the **Next** button.
    * You can select up to 10 notification groups.
    * The selected notification group can change its status (Active/Inactive).
    * If there are no notification groups to add, create a notification group on the notification group creation page before proceeding.
9. In the **Check Input Information** step, after confirming the entered content, click the **Generate** button. The change analysis is starting.
    * Creating a change set does not affect the stack. You can decide whether to execute after reviewing the change set.
    * When the analysis is complete, the change set’s status changes to **Create Completed**.

> **Reference**
>
> * If there are no changes, the change set creation fails and the status is displayed as **Create Failed**.
> * If there are many nested stacks or they are deeply configured, generating the change set can take several minutes to tens of minutes. Use **Create change set for nested set** only when you need to verify changes up to the nested stack.

# View change set list {#list}

You can view the list of change sets created in the stack and the change set that was last executed.
To view the list of change sets, follow the steps below.

1. Click the **All Services > Management > Infrastructure Builder** menu. **Service Home** page is accessed.
2. On the **Service Home** page, click the **Stack > Stack List** menu. Navigate to the **Stack List** page.
3. On the **Stack List** page, click the stack. Navigate to the **Stack Details** page.
4. On the **Stack Details** page, click the **Change Set** tab.
5. Check the last executed change set.

| Category | Detailed description |
|---------|--------|
| Change set name | The name of the most recently executed change set<ul><li>clicking it will navigate to the detail page of that change set</li></ul> |
| Execution time | The time when the change set was executed |

_Table. Last executed change set items_

6. Check the list of change sets.

| Category | Detailed description |
|---------|--------|
| Change set name | Name of the change set |
| Creation date and time | Time when the change set was created |
| Change set status | Status of the change set |
| Root change set name | Name of the top-level change set in a nested structure |
| Parent Change Set Name | Name of the parent change set in a nested structure |

_Table. Change set list items_

    * You can search by change set name. **Detailed Search** allows you to specify conditions by change set name, creation date and time, and change set status.
    * You can retrieve only the change sets with statuses Active(Completed), Active(Failed), Active(Pending), Active(In progress), and Deleted using the status filter. The default is a state that excludes Deleted.

# Review changes {#review}

You can review how resources will be changed before executing the change set.
To review the changes, follow the steps below.

1. **All Services > Management > Infrastructure Builder** Click the menu. Navigate to the **Service Home** page.
2. On the **Service Home** page, click the **Stack > Stack List** menu. Go to the **Stack List** page.
3. On the **Stack List** page, click the stack. Navigate to the **Stack Details** page.
4. On the **Stack Details** page, click the **Change Set** tab and then click the change set you want to review. Navigate to the **Change Set Details** page.
5. **Change Set Details** page, select a tab to review the changes.

| Category | Detailed description |
|---------|--------|
| Detailed information | View basic information of the change set<ul><li>Service, resource type, SRN, resource name, resource ID</li></ul><ul><li>Creator, creation timestamp, modifier, modification timestamp</li></ul><ul><li>Change set name, change set ID, change set status reason, description</li></ul><ul><li>The change set status and change set execution status are displayed at the top of the page</li></ul> |
| Resource change | View changes applied to the template's resources by resource<ul><li>Logical ID, Action, Service, Resource Type, Replacement status, Nested change set, Policy Action, Physical ID</li></ul><ul><li>Search by Logical ID and Physical ID, and specify conditions in advanced search using Action, Service, Resource Type, Replacement status, and Policy Action</li></ul><ul><li>**Check resource changes** button, when clicked, compares the expected and current values of the resource in a popup</li></ul><ul><li>Actions are categorized into the following three</li></ul><ul><li>**Add**: Add a new resource to the stack</li></ul><ul><li>**Modify**: Change the properties of an existing resource</li></ul><ul><li>**Remove**: Delete an existing resource from the stack</li></ul> |
| Deployment verification | Verify the results to confirm whether it is structurally deployable<ul><li>Display a success message when all validations pass</li></ul><ul><li>If there are issues, display the logical ID, service, resource type, validation type, mode (Warn/Fail), and reason in a table, and view the full details by expanding the reason</li></ul><ul><li>For more details on deployment validation, see [배포 검증](/en/userguide/management/infrastructure_builder/overview/change_set/#validation)</li></ul> |
| Input information | Verify information passed to the change set<ul><li>**Parameters**: Key, Value, interpreted value (searchable by Key and Value)</li></ul><ul><li>**Tags**: Key, Value</li></ul><ul><li>**Alert Group**: alert group name, user, external recipient, creation time, status</li></ul> |
| template | Check the template code used for executing the change set<ul><li>Click **Copy code** to copy the code</li></ul> |
| Changes | Check resource changes in code<ul><li>Click **Copy code** to copy the code</li></ul> |

_Table. Change Set Details Tab Items_


> **Caution**: Resources determined as **Replace(Replace)** are deleted and recreated, so their physical IDs change, which may cause data loss or service interruption. Before executing, be sure to verify the resources to be replaced and perform a backup if necessary.

# Run Change Set {#execute}

You can run the reviewed change set to apply the changes to the stack.
To run the change set, follow the steps below.

1. **All Services > Management > Infrastructure Builder** Click the menu. Navigate to the **Service Home** page.
2. On the **Service Home** page, click the **Stack > Stack List** menu. **Stack List** navigate to the page.
3. On the **Stack List** page, click the stack. Navigate to the **Stack Details** page.
4. On the **Stack Details** page, click the **Change Set** tab and then click the change set to execute. Navigate to the **Change Set Details** page.
5. On the **Change Set Details** page, click the **Execute Change Set** button. **Execute Change Set** the popup opens.
    * **Stack Details** page's **Change Set** tab also allows you to select **Execute Change Set** from the change set's more options (⋮) menu.
6. Select the handling method for provisioning failures.

| Category | Detailed description |
|---------|--------|
| Action on provisioning failure | Select rollback behavior for stack failure<ul><li>**All stack resources rollback**: Roll back to the state before the stack execution</li></ul><ul><li>**Preserve successfully created resources**: Preserve resources that were provisioned successfully and roll back resources that failed to create to their last state</li></ul> |
| Delete newly created resources during rollback | Specify whether to delete resources created during a failed operation regardless of the deletion policy<ul><li>**Use deletion policy**: Retain or delete the created resources according to the deletion policy set in the template</li></ul><ul><li>**Delete all newly created resources**: Delete resources created during rollback regardless of the deletion policy set in the template</li></ul><ul><li>**Provisioning failure action > Preserve successfully created resources**: Selecting this does not delete successful resources, so the option has no effect</li></ul> |

_Table. Change Set Execution Option Items_

7. Click the **Confirm** button. The change set execution starts, and upon completion you can check the results in the notification at the top right of the screen.
    * The implementation progress can be checked on the **Stack Details** page's **Events** tab.

# Delete change set {#delete}

You can delete change sets that will not be executed.
To delete a change set, follow the steps below.

1. Click the **All Services > Management > Infrastructure Builder** menu. Navigate to the **Service Home** page.
2. On the **Service Home** page, click the **Stack > Stack List** menu. Navigate to the **Stack List** page.
3. On the **Stack List** page, click the stack. Navigate to the **Stack Details** page.
4. On the **Stack Details** page, after clicking the **Change Set** tab, select **Delete Change Set** from the more options (⋮) menu of the change set you want to delete. The confirmation popup opens.
    * On the **Change Set Details** page, you can also click the **Delete Change Set** button.
5. After confirming the change set to delete, enter the change set name for confirmation and click the **Confirm** button.
    * You must enter a change set name for the **Confirm** button to be enabled.
    * Depending on the size, deletion may take several minutes.

> **Reference**: Deleting a change set does not affect the stack or the resources managed by the stack. The change set is the result of analyzing the changes, and if it is not executed, it will not be reflected in the resources.
