# How-to guides

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

---

Users can define infrastructure as templates through the Infrastructure Builder, create stacks, and deploy and manage resources on the Samsung Cloud Platform.

> **Reference**
>
> * To create a stack, you must first have a template ready.
> * Templates can be prepared in the following three ways.
>     * **Create directly in the Console**: [Create Template](/en/userguide/management/infrastructure_builder/how_to_guides/template/#template-create) If you create it there, it will be stored in Object Storage and the URL will be displayed. Create a stack using this URL.
>     * **Object Storage URL**: Enter the URL of the template file that was previously uploaded to Object Storage when creating the stack.
>     * **File Upload**: Attach the local template file when creating the stack.
> * When using nested stacks, you must store the template in Object Storage and specify it by URL.

# Create a stack {#create}

You can create a stack based on a template to deploy resources.

> **Notice**
>
> * To create a stack, you must first prepare a template.
> * For detailed information on creating templates, see [Template Management](/en/userguide/management/infrastructure_builder/how_to_guides/template/).

To create a stack, follow these steps.

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 **Create Stack** button. Navigate to the **Create Stack** page.
4. In the **Enter Service Information** step, after entering the stack information, click the **Next** button.

| Category | Detailed description |
|---------|--------|
| Stack name | Enter a name to identify the stack<ul><li>Enter using letters, numbers, and the special character (-) with a length of 1-128 characters</li></ul> |
| How to select a template | Specify the template to be used by the stack<ul><li>**Object Storage URL**: Enter the URL of the template file stored in Object Storage</li></ul><ul><li>**Select file**: Attach the template file located locally</li></ul> |
| Storage bucket URL | Enter the file URL of the Object Storage where the template is stored<ul><li>If you select **Object Storage URL** as the template selection method, this field is required</li></ul><ul><li>Input format: `https://object-store.private.{region}.{offering}.samsungsdscloud.com/{accountId}:{bucketName}/{path}/{fileName}`</li></ul> |
| Upload template file | Attach a template file located locally<ul><li>If the template selection method is set to **File Selection**, this field is required</li></ul><ul><li>Only files in JSON or YAML format can be attached</li></ul><ul><li>File size must be 51,200 Bytes or less</li></ul><ul><li>The uploaded template file is stored in Object Storage</li></ul> |
| tag | Enter tags to add to the stack (up to 50)<ul><li>The configured tags are propagated to resources created by the stack</li></ul><ul><li>Managed tags from the stack are added together</li></ul> |

_Table. Stack creation service information input fields_

> **Information**
>
> * Template files can only use YAML or JSON format.
> * The length of the path, including folder names, file names, and the separator (/), must be within 1,024 bytes (based on UTF-8 encoding).
> * Enter **Object Storage URL** to verify the file type and format of the URL. If it is not correct, "Invalid URL format or extension." An error is displayed: TEXT: (Only YAML, JSON allowed)
> * When you click the **Next** button, it checks the existence of the URL, the validity of the user authentication key, and the validity of the template code (JSON/YAML format). If verification fails, an error message is displayed and you cannot proceed to the next step.
> * If the code is invalid or the user authentication key is invalid when attaching a file, a notification popup is displayed and the upload does not occur.
> * Since the attached template file is stored in an Object Storage bucket, the upload will fail if you do not have permission to create an Object Storage bucket. For detailed information, refer to the [Template Storage Location](/en/userguide/management/infrastructure_builder/overview/template/#location).
5. In the **Parameter Settings** step, after entering the values of the parameters defined in the template, click the **Next** button.
    * Input fields are displayed according to the parameters defined in the template, and up to 200 parameters can be used.
    * If the template includes a configuration that creates IAM resources, the **Check resource permissions within the template** area is displayed. **Approve to allow Infrastructure Builder to create IAM resources.** You must select an item for the **Next** button to become active.

| Category | Detailed description |
|---------|--------|
| Static dropdown list | Parameter with AllowedValues defined in the template<ul><li>Select a value from the list</li></ul> |
| Text input field | String parameter<ul><li>Sensitive information with NoEcho enabled is displayed with the input value masked</li></ul> |
| Numeric control field | Number (Number) parameter<ul><li>Enter a value within the range of MinValue and MaxValue</li></ul> |
| Group | Items grouped by parameter group<ul><li>Items are separated and displayed by group unit</li></ul> |

_Table. Parameter input type_

> **information**
>
> * All required parameters must be entered and the input values must be valid for the **Next** button to be enabled.
> * Both string and numeric parameters can be entered up to 4,096 bytes.
> * If the input value does not meet the parameter constraints, an error message is displayed.
>     * Number: If no value, "This field is required.", if below the minimum, "The number must be at least N.", if above the maximum, "The number must be at most N."
>     * String: If the value is missing, "This field is required.", if shorter than the minimum length, "The length must be at least N characters.", if it exceeds the maximum length, "The length must be at most N characters.", if it does not match the allowed pattern (AllowedPattern), "It must match the specified pattern (regular expression)."
>     * If a ConstraintDescription is specified in the template, that text is displayed instead of error messages, except for required value errors.
6. In the **Stack option configuration** step, after setting the stack's permissions and failure options, click the **Next** button.

| Category | Detailed description |
|---------|--------|
| Permission | Select the permission to use when the stack creates resources<ul><li>**Use user permissions**: Perform tasks by assuming the user's permissions (default)</li></ul><ul><li>**Change IAM role**: Perform tasks with the permissions of the selected IAM role</li></ul> |
| IAM role | When **IAM role change** is selected, required selection<ul><li>Roles available in the selected Account are displayed in ascending order by role name</li></ul><ul><li>**New creation**: The screen for creating a new IAM role opens in a new window</li></ul><ul><li>Refresh icon: Reflects the newly created IAM role in the list</li></ul> |
| Action on provisioning failure | Select rollback behavior for stack failure<ul><li>**Rollback all stack resources**: Roll back to the state before the stack was executed (default)</li></ul><ul><li>**Preserve successfully created resources**: Preserve resources that were provisioned successfully and roll back failed resources 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**: Keep or delete the created resources according to the deletion policy set in the template (default)</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> |
| Stack policy | Define resources to protect from unintended updates during stack updates<ul><li>**No stack policy**: No additional input (default)</li></ul><ul><li>**Stack policy input**: Enter the stack policy directly in JSON format</li></ul><ul><li>**File upload**: Attach a stack policy file from the local system. Only files in JSON format can be attached, and the file name must be within 1,024 Bytes</li></ul><ul><li>The size of a stack policy entered directly or attached must be 16,384 Bytes (16KB) or less</li></ul><ul><li>Since the stack policy is stored in an Object Storage bucket, saving will fail if you lack permission to create the bucket</li></ul><ul><li>A stack policy can only be set when creating a stack; after creation, a new stack policy cannot be set on the stack</li></ul><ul><li>For more information on stack policies, see [스택 정책](/en/userguide/management/infrastructure_builder/overview/stack/#stack-policy) reference</li></ul> |
| Stack creation timeout | Stack creation timeout (minutes) input<ul><li>Only numbers in the range of 1~180 minutes can be entered</li></ul><ul><li>If the task does not finish within the specified time, it is treated as a failure</li></ul> |
| Delete protection | Set to prevent stacks from being accidentally deleted<ul><li>If you select **use**, stacks cannot be deleted when deletion protection is enabled</li></ul><ul><li>Default is disabled</li></ul> |

_Table. Stack option configuration items_

> **information**
>
> When creating a stack in the Console, if a user who has not obtained a user authentication key (Access Key/Secret Key) selects **User Permission Use**, the user token may expire after 12 hours of login, causing stack creation to fail.
>
> If you anticipate that stack creation will take a long time, obtain a user authentication key or use **IAM role change**.
> **Guide**
>
> If the stack policy code is invalid, it is displayed as follows.
> * **Stack Policy Input**: **Next** button when clicked displays the error "Code is not valid."
> * **File Upload**: When attaching a file, a notification popup appears and the file does not upload.
7. In the **Notification Settings** step, select the notification group that will receive alerts for the stack, then click the **Next** button.
    * The notification group is optional, and you can proceed to the next step even if you do not select it.

| Category | Detailed description |
|---------|--------|
| Notification Group List | Notification group name, user count, external recipient count, creation date/time<ul><li>Clicking the user count shows the list of users included in that notification group</li></ul><ul><li>You can search by entering the notification group name</li></ul> |
| Selected notification group | The selected notification groups are displayed as chips above the list<ul><li>Up to 10 can be selected</li></ul><ul><li>Clicking the **X** icon on a chip deselects that notification group</li></ul><ul><li>Click **Deselect** to deselect all selected notification groups</li></ul> |
| Create notification group | If there is no notification group to add, click **Create Notification Group**<ul><li>The Create Notification Group screen opens in a new tab</li></ul><ul><li>After creating the notification group, click the refresh icon to update the list</li></ul> |

_Table. Notification Settings Items_

> **information**
>
> * To add an external user as a notification recipient, first add the external recipient to the notification group, then select that notification group.
> * The notification delivery method (E-mail or SMS) for users included in a notification group can be set by selecting the notification target **Service > Infrastructure Builder Stack** in the notification settings.
> * Notifications to external recipients included in the notification group are sent only via E-mail.
> * If there are no notification groups, the list will display "No data."
8. In the **Check Input Information** step, after confirming the information set in each stage, click the **Generate** button. The stack is created and resource deployment begins.
    * The information entered during the service information input, parameter setting, stack option configuration, and notification setting stages is displayed step by step.
    * Tags, parameters, and alert groups are displayed in a table, showing 10 items per page and providing pagination.
    * If you apply a stack policy in the stack option configuration, clicking **View Stack Policy** will show the policy details in a popup. You can copy the content using **Copy Code** in the popup.
    * To edit the content, click the **Previous** button to go back to that step.
    * The deployment progress can be checked on the **Stack Details** page's **Events** tab.

> **Caution**
>
> * When a stack is deleted, the resources included in the stack are deleted by default.
>     * However, if the deletion policy in the template is set to **Retain**, the resource will not be deleted.
> * Configure resources with the same lifecycle into a single stack.

# Check stack list {#list}

You can view the list of created stacks.
To view the stack list, follow these steps.

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. Check the list of stacks on the **Stack List** page.

| Category | Detailed description |
|---------|--------|
| Stack name | Stack name<ul><li>When the stack name is clicked, you can view the detailed information of that stack</li></ul><ul><li>If it is a nested stack, an icon is displayed (hovering shows a 'nested stack' indication)</li></ul> |
| Creation Date/Time | Stack creation time (default sort: descending) |
| Drift state | Stack drift state |
| status | Current state of the stack |

_Table. Stack list item_

    * The stack ID can be displayed additionally in the column settings.
4. Search the list or retrieve items that meet the criteria.

| Category | Detailed description |
|---------|--------|
| search | Search by stack name (case-insensitive) |
| Detailed Search | Specify stack name, drift status, and state as conditions<ul><li>Multiple drift statuses and states can be selected</li></ul> |
| Status filter | List by stack status group<ul><li>Active(In Progress), Active(Completed), Active(Failed), Deleted</li></ul><ul><li>The default is all statuses except Deleted</li></ul><ul><li>When detailed search is applied, it becomes disabled; resetting the detailed search returns to the default</li></ul> |

_Table. Stack list query items_


You can perform the following actions from the stack's More (⋮) menu. The available actions vary depending on the stack's state, and if an action cannot be selected, a tooltip appears when you hover the mouse.


| Menu | Explanation |
|---------|--------|
| Delete stack | Delete the stack and the resources it manages |
| Stack modification | Modify the stack template and parameters |
| Drift detection | Detect stack drift |
| Create change set | Generate a change set to review the stack’s changes. |
| Undo stack edit | Cancel ongoing stack modification (only possible in Updating state) |
| Continue update rollback | Retry the update rollback (only possible when in Update Rollback Failed state) |

_Table. Stack list more menu_


> **Reference**
>
> * Refer to the [Stack Status](/en/userguide/management/infrastructure_builder/overview/stack/#status) for the tasks that can be performed for each state.
> * Stacks that have been deleted can be viewed by selecting **Deleted** in the status filter.
> * Click the **Create Template** button to create a template. For more details, refer to [Create Template](/en/userguide/management/infrastructure_builder/how_to_guides/template/#template-create).

# View stack details {#detail}

You can view detailed information about the stack and its deployed resources, and perform tasks such as modifying the stack or detecting drift.
**Stack Details** page consists of **Details**, **Events**, **Resources**, **Result Information**, **Parameters**, **Template**, **Change Set**, **Drift**, **Notifications** tabs. **Result Information** and **Parameter** tabs display the total count in their names.

To view detailed information about the stack, follow these steps.

1. **All Services > Management > Infrastructure Builder** Click the menu. Navigate to the **Service Home** page.
2. **Service Home** on the page, click the **Stack > Stack List** menu. Navigate to the **Stack List** page.
3. On the **Stack List** page, click the stack to view its details. Navigate to the **Stack Details** page.
    * **Stack Details** At the top of the page, the stack status, drift status, and auxiliary function buttons are displayed, and you can select tabs to view information.
    * Buttons that cannot be used in the current state are disabled, and hovering over them displays the reason they are unavailable.

| Category | Detailed description |
|---------|--------|
| Stack status | Current state of the stack |
| Stack modification | Modify the stack's template and parameters, etc.<ul><li>Available states: Create Failed, Create Completed, Update Completed, Update Failed, Update Rollback Completed</li></ul><ul><li>Cannot be used in some states that are in progress or have failed</li></ul><ul><li>Click to go to the stack edit screen</li></ul> |
| Create change set | Create a change set to preview changes<ul><li>Available statuses: Create Completed, Update Completed, Update Rollback Completed, Reviewing</li></ul><ul><li>Click to go to the change set creation screen</li></ul> |
| Drift detection | Start drift detection for resources managed by the stack<ul><li>Available states: Create Completed, Delete Failed, Update Completed, Update Rollback Failed, Update Rollback Completed</li></ul><ul><li>Cannot be used while in progress</li></ul><ul><li>For more information, see [Drift Detection](/en/userguide/management/infrastructure_builder/how_to_guides/drift/)</li></ul> |
| Read more | Perform additional actions based on the state<ul><li>**Cancel stack modification**: Available only in Updating state</li></ul><ul><li>**Continue update rollback**: Available only in Update Rollback Failed state</li></ul> |
| Delete stack | Delete Stack<ul><li>Available states: Create Failed, Create Completed, Rollback Failed, Rollback Completed, Delete Failed, Update Completed, Update Failed, Update Rollback Failed, Update Rollback Completed, Reviewing</li></ul><ul><li>Cannot delete while in progress</li></ul><ul><li>For more details, see [Delete Stack](#delete)</li></ul> |
| Drift state | Stack drift status<ul><li>**Drifted**: One or more resources are drifted</li></ul><ul><li>**In sync**: The actual configuration of the stack matches the expected configuration</li></ul><ul><li>**Not checked**: Drift check not performed</li></ul><ul><li>**Unknown**: Unable to perform drift check</li></ul><ul><li>For all states except Not checked, the timestamp of the last drift check is displayed, and hovering over the timestamp shows a "Drift timestamp" tooltip</li></ul> |

_Table. Status information and additional features_


To cancel a stack modification or continue an update rollback from the **More** menu on the **Stack Details** page, follow these steps.

1. On the **Stack Details** page, click the **More** button.
2. Please select **Cancel stack modification** or **Continue update rollback**. A confirmation popup window displaying the stack name opens.
    * **Cancel Stack Edit**: "Do you want to cancel the stack edit?"
    * **Continue Update Rollback**: "Do you want to roll back the update?"
3. Click the **Confirm** button. "The stack modification has been canceled." or "The update rollback has started." message is displayed.
    * Depending on the scale, it can take several tens of minutes, and you can view the completion result in the notification at the top right of the screen.

## Detailed information {#information}

You can view the basic information and status of the stack.


| Category | Detailed description |
|---------|--------|
| service | Service name |
| Resource Type | Resource Type |
| SRN | Unique resource ID in Samsung Cloud Platform |
| Resource name | Resource Name |
| Resource ID | Unique resource ID in the service |
| Creator / Creation DateTime | User who created the stack and creation time |
| Editor / Modification Date and Time | User who last modified the stack and modification timestamp |
| Stack name / Stack ID | Stack name and unique ID |
| Detailed status | Additional status information of the stack<ul><li>is not displayed in typical cases, and is shown only in the following situations</li></ul><ul><li>**CONFIGURATION_COMPLETE**: when the stack's resource configuration phase is complete and stabilization is in progress</li></ul><ul><li>**VALIDATION_FAILED**: when the template's properties are incorrectly defined, causing a validation error</li></ul> |
| Status Reason | Cause of the status<ul><li>Failure scenario: CREATE_FAILED, UPDATE_FAILED, DELETE_FAILED, ROLLBACK_FAILED, etc. Explanation of the cause when an operation fails</li></ul><ul><li>Rollback scenario: ROLLBACK_COMPLETE, UPDATE_ROLLBACK_COMPLETE, etc. Explanation of the cause when a rollback completes</li></ul><ul><li>Other reasons are displayed for permission issues (IAM role or insufficient permissions), resource conflicts (conflict with an existing resource), limit exceedance (service limit exceeded), template errors (template syntax or logic errors), and dependency problems (resource dependency issues)</li></ul> |
| Root stack / Parent stack | In a nested stack structure, the root stack and parent stack information |
| Deletion time | Stack deletion timestamp |
| Drift status / Drift check time | Stack drift status and the timestamp of the last drift check |
| Prevent deletion | Delete protection usage (enabled/disabled)<ul><li>**Enabled**: Deletion protection is set, so the stack cannot be deleted</li></ul><ul><li>**Edit** button can be clicked to change the setting</li></ul><ul><li>For more details, see [Setting up stack deletion protection](#protect)</li></ul><ul><li>Nested stacks use the root stack's delete protection setting as is, so they cannot be modified</li></ul> |
| IAM role | IAM role name used by the stack<ul><li>If not set, display as -</li></ul> |
| Explanation | Description of the stack |
| Stack policy | Whether stack policy is applied<ul><li>If applied, clicking **View Stack Policy** will allow you to view the policy details in a popup, and you can copy the content with **Copy Code**</li></ul> |
| tag | Tag list (Key, Value)<ul><li>The total count is displayed, and you can view and search in batches of 10</li></ul> |

_Table. Stack Details Tab Items_


## event {#event}

You can check the events generated during stack creation, modification, and deletion to understand the progress and identify the cause of failures.


| Category | Detailed description |
|---------|--------|
| Request ID | ID of the request (task) where the event occurred<ul><li>Click the expand icon in the request ID row to view detailed information about the event that occurred in that request</li></ul> |
| Request date and time | Event occurrence time<ul><li>Default sorting is descending (most recent first)</li></ul> |
| Logical ID | Logical ID of the resource where the event occurred |
| status | Resource processing status |
| Detailed status | Additional information about the status |
| Status Reason | Cause of the state occurrence<ul><li>If the deployment fails, you can check the cause of the failure</li></ul> |

_Table. Stack Event Tab Items_


* You can search by request ID and logical ID (case-insensitive).
* The number of events currently loaded is displayed at the top of the list.
* Services, resource types, and similar items can be shown or hidden in the column settings. Request ID, request timestamp, logical ID, status, detailed status, and status reason are displayed by default.

> **Reference**: The event list loads additional events through scrolling or **More**.

## Resource {#resource}

You can view the list of resources deployed by the stack.


| Category | Detailed description |
|---------|--------|
| Logical ID | Logical ID of the resource defined in the template<ul><li>Default sorting is ascending</li></ul> |
| Physical ID | The actual ID of the deployed resource is displayed as <ul><li>SRN or resource ID, and clicking opens the resource's detail page in a new tab</li></ul> |
| service | Service to which the resource belongs |
| Resource Type | Resource type |
| Deployment status | Resource deployment status<ul><li>Click the info icon to view guidance on the deployment status</li></ul> |

_Table. Stack resource tab items_


You can search by logical ID and physical ID (case-insensitive). **Detailed Search** allows you to specify conditions by logical ID, physical ID, service, resource type, and deployment status. Logical IDs and physical IDs can be sorted by column header, and the columns to display can be selected in column settings.

> **Reference**: The deployment status reflects the state of the most recent deployment operation performed by the stack. Subsequent external changes to resources created outside the stack will not be reflected.

## Result information {#output}

You can view the values defined in the template's result output (Outputs). The total number of results is also displayed in the tab name.


| Category | Detailed description |
|---------|--------|
| Key | Result output key<ul><li>default sorting is ascending</li></ul> |
| Value | Result output value |
| description | Explanation of result output |
| Export name | Exported name for referencing from other stacks |

_Table. Stack Result Information Tab Items_


You can search by Key and Value (case-insensitive). **Detailed Search** allows you to specify conditions using Key, Value, and Export Name. Key and Value can be sorted by column header, and the columns to display can be selected in column settings.

## Parameter {#parameter}

You can check the parameters passed to the stack. The total number of parameters is also displayed in the tab name.


| Category | Detailed description |
|---------|--------|
| Key | Parameter key<ul><li>Default sorting is ascending</li></ul> |
| Value | Value passed to the stack |
| Parsed value | Interpret references, etc., to derive the final applied value |

_Table. Stack Parameter Tab Items_


You can search by Key and Value (case-insensitive). **Detailed Search** allows you to specify conditions using Key and Value. Key and Value can be sorted by column header, and the columns to display can be selected in column settings.

## template {#template}

You can view the template code used in the stack. When you click **Copy Code**, the template code is copied and a "The code has been copied." message is displayed.

> **Reference**: **Template** tab displays the template used when creating the stack. After modifying a stack or executing a change set, the template used in the most recent completed update is displayed. Even if the template stored in Object Storage is changed later, the contents of the **Template** tab do not change.

## Change set {#change-set}

You can view the change set created for this stack. Change sets allow you to plan how to modify the stack before starting a stack update, and to review configuration changes before creating and executing a change set.


| Category | Detailed description |
|---------|--------|
| The most recently executed change set | The name and execution timestamp of the most recently executed change set<ul><li>Clicking the change set name takes you to that change set's detail page</li></ul> |
| Change Set Status Filter | Filter the change set list by status<ul><li>Default selection: Active(Completed), Active(Failed), Active(Pending), Active(In progress)</li></ul><ul><li>Selecting **Deleted** allows viewing deleted change sets</li></ul> |
| Change set name | Name of the change set<ul><li>click to go to the change set detail page</li></ul> |
| Creation Date/Time | Date the change set was created<ul><li>Default sorting is descending (most recent first)</li></ul> |
| Change set status | Status of the change set |
| Root change set name | Name of the top-level change set for nested structures |
| Parent change set name | Name of the parent change set for nested structures |

_Table. Stack Change Set Tab Items_


You can search by change set name (case-insensitive). **Detailed Search** allows you to specify conditions by change set name, creation date and time, and change set status. The Change Set ID can be selected for display in the column settings.

You can perform the following actions from the More (⋮) menu of a change set. If it is unavailable, a tooltip will appear when you hover the mouse.


| Menu | Explanation |
|---------|--------|
| Execute change set | Execute the change set to apply changes to the stack<ul><li>It can be used only when the change set status is Create Completed and the execution status is Available</li></ul><ul><li>When clicked, the **Execute Change Set** popup opens, allowing you to choose the action for provisioning failures and the method for deleting newly created resources during rollback</li></ul> |
| Delete change set | Delete change set<ul><li>Create Pending, Create Completed (when the execution status is Unavailable, Available, Execute Failed, or Obsolete), Create Failed, Delete Failed can be used</li></ul><ul><li>When clicked, a confirmation alert popup opens to enter the change set name</li></ul> |

_Table. Stack change set more options menu_


The change set status filter groups the actual change set statuses and provides them as follows.


| filter | Included change set status |
|---------|--------|
| Active(Completed) | Create Completed |
| Active(Failed) | Create Failed, Delete Failed |
| Active(Pending) | Create Pending, Delete Pending |
| Active(In progress) | Creating, Deleting |
| Deleted | Delete Completed |

_Table. Change Set Status Filter_


For instructions on using buttons such as executing and deleting change sets, refer to [Managing Change Sets](/en/userguide/management/infrastructure_builder/how_to_guides/change_set/)’s [Executing a Change Set](/en/userguide/management/infrastructure_builder/how_to_guides/change_set/#execute) and [Deleting a Change Set](/en/userguide/management/infrastructure_builder/how_to_guides/change_set/#delete).

## Drift {#drift}

You can view the stack's drift detection results by resource.

> **Reference**: Only resources that support drift detection can be viewed in the drift tab. Refer to the **Resources** tab for the resources of all stacks.


| Category | Detailed description |
|---------|--------|
| Logical ID | Logical ID of the resource defined in the template<ul><li>The default sort order is ascending</li></ul> |
| Physical ID | The unique ID of the resource that was actually created |
| service | Service that the resource belongs to |
| Resource Type | Resource Types |
| Resource drift status | The drift status of the resource |
| Drift verification timestamp | Time when drift was detected |
| Drift Reason | Reason for drift occurrence |

_Table. Stack Drift tab items_


You can search by logical ID and physical ID (case-insensitive). **Detailed Search** allows you to specify conditions by logical ID, physical ID, service, resource type, resource drift status, drift check timestamp, and drift reason. The columns to display can be selected in the column settings.

In the resource's overflow (⋮) menu, you can select **Resource Drift Details** and **Detect Resource Drift**.

For instructions on using buttons such as checking drift details and detecting resource drift, refer to [Check drift details](/en/userguide/management/infrastructure_builder/how_to_guides/drift/#detail) and [Detect resource drift](/en/userguide/management/infrastructure_builder/how_to_guides/drift/#resource).

## Notification {#notification}

You can view the notification groups set for the stack and enable or disable them.


| Category | Detailed description |
|---------|--------|
| Notification group name | The name of the notification group<ul><li>Clicking it opens the detailed view of that notification group in a new tab</li></ul> |
| User | Number of users included in the notification group<ul><li>When clicked, the user list is displayed as a popover, and selecting a user opens that user's detail screen in a new tab</li></ul> |
| External recipient | Number of external recipients included in the notification group |
| Creation Date/Time | Date and time the notification group was created |
| status | Status of the notification group (Active, Inactive) |
| Read more | **Enable**: Activate a notification group that is in Inactive state<br>**Disable**: Deactivate a notification group that is in Active state |

_Table. Stack notification tab items_


* If you select **activation**, a confirmation popup "Do you want to enable group notifications?" opens. When you click the **Confirm** button, a "Group notification activation was successful." message is displayed.
* If you select **Disable**, a confirmation popup "Do you want to disable group notifications?" opens. When you click the **Confirm** button, a message saying "Group notification has been successfully disabled." is displayed.
* If the status of the notification group does not match, the request fails. Activation requests are possible only when the notification group status is Inactive, and deactivation requests are possible only when it is Active.

# Modify Stack {#update}

You can modify the resources managed by the stack by changing the template, parameters, and other settings.

> **Notice**: When modifying a stack, it is recommended to create a change set and review the changes first. For detailed information about change sets, refer to [변경 세트 관리하기](/en/userguide/management/infrastructure_builder/how_to_guides/change_set/).

To modify the stack, follow these steps.

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 you want to edit. Navigate to the **Stack Details** page.
4. On the **Stack Details** page, click the **Edit Stack** button. Navigate to the **Edit Stack** page.
    * **Stack Edit** button can be used only when the stack is in an editable state. For more details, refer to [View stack details](#detail).
    * If the stack status is **Update Failed**, you can modify the template or parameters that caused the failure and then update the stack again to revert it to the normal state (**Update Completed**).
5. After entering the information to be edited in the **Service Information Input** step, click the **Next** button.

| Category | Detailed description |
|---------|--------|
| Stack name | Stack name<ul><li>Cannot be changed (read-only)</li></ul> |
| Template replacement | Choose whether to replace the template used for the stack<ul><li>**Use existing template**: No additional input required</li></ul><ul><li>**Change template**: Method to select the new template (**Object Storage URL**, **File selection**) and input template information</li></ul><ul><li>Refer to the **Service Information Input** step in [Create Stack](#create) for template specification methods and validation</li></ul> |
| tag | Enter tags to add to the stack (up to 50)<ul><li>The configured tags are propagated to resources created by the stack</li></ul><ul><li>Managed tags from the stack are added together</li></ul> |

_Table. Stack modification service information input fields_

6. In the **Parameter Settings** step, after modifying the values of the parameters defined in the template, click the **Next** button.
    * Parameter input types and validation are the same as the **Parameter Setting** step of [스택 생성하기](#create).
    * If the template includes a configuration that creates IAM resources, you must select the **Approve to allow the Infrastructure Builder to create IAM resources.** item for the **Next** button to become active.
7. In the **Stack Options Configuration** step, after modifying the stack's permissions and failure options, click the **Next** button.

| Category | Detailed description |
|---------|--------|
| Permission | Select the permission to use when the stack modifies resources<ul><li>**Use user permissions**: Perform tasks by assuming the user's permissions</li></ul><ul><li>**Change IAM role**: Perform tasks with the permissions of the selected IAM role</li></ul> |
| IAM role | When **IAM role change** is selected <ul><li>Roles available in the selected account are displayed in ascending order by role name</li></ul><ul><li>**New creation**: The screen for creating a new IAM role opens in a new window</li></ul><ul><li>Refresh icon: Newly created IAM roles are reflected in the list</li></ul> |
| Behavior for provisioning failures | Select rollback behavior for stack failure<ul><li>**Rollback all stack resources**: Roll back to the state before the stack was executed (default)</li></ul><ul><li>**Preserve successfully created resources**: Preserve resources that were provisioned successfully and roll back failed resources to their last state</li></ul><ul><li>If the stack status is **Update Failed**, only **Preserve successfully created resources** can be selected (**Rollback all stack resources** is disabled)</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**: Keep or delete the created resources according to the deletion policy set in the template (default)</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 behavior > Preserve successfully created resources**: Selecting this does not delete the successful resources, so this option has no effect when selected</li></ul> |
| Stack policy | Define resources to protect from unintended updates during a stack update<ul><li>The previously applied stack policy is displayed</li></ul><ul><li>Select **No Stack Policy**, **Enter Stack Policy**, or **Upload File**</li></ul><ul><li>The stack policy entered here is applied only once for this stack modification, replacing the existing stack policy; if no stack policy is entered in subsequent modifications, the existing stack policy will be applied</li></ul><ul><li>Refer to the **Configure Stack Options** step in [Create Stack](#create) for input methods and constraints</li></ul> |

_Table. Stack modification option configuration items_

> **information**
>
> When modifying a stack in the Console, if a user who has not obtained a user authentication key (Access Key/Secret Key) selects **User Permission Use**, the user token may expire after 12 hours of login, causing the stack modification to fail.
>
> If you anticipate that the stack update will take a long time, obtain a user authentication key or use **IAM role change**.
8. In the **Notification Settings** step, after selecting the notification group, click the **Next** button.
    * You can select up to 10 notification groups, and the selection method is the same as the **notification settings** step in [스택 생성하기](#create).
    * The notification groups already set in the stack are displayed as selected, and you can specify the **status** for each notification group.

| Category | Detailed description |
|---------|--------|
| status | Select the status of the notification group from the dropdown list<ul><li>The previously configured notification group is displayed with the status at the time the stack was created</li></ul><ul><li>If you select a notification group that previously had no notification set, it is set to **Active**, and can be changed to **Inactive**</li></ul><ul><li>If you deselect the notification group, it is treated as **Disabled**</li></ul> |

_Table. Stack edit notification setting items_

9. After reviewing the changes in the **Input Information Check** step, click the **Confirm** button. Stack editing begins, and you navigate to the **Stack Details** page of that stack.
    * The information entered during the service information input, parameter setting, stack option configuration, and notification setting stages is displayed step by step.
    * When a stack policy is applied, click **View Stack Policy** to view the policy details in a popup.
    * To edit the content, click the **Previous** button to go to that step.

> **Caution**: Resources whose change type is judged as **Replace(Replace)** delete the existing resource and create a new one, which may cause data loss or service interruption. Before making changes, be sure to verify the resources to be replaced with the change set.

# Enable stack deletion protection {#protect}

You can configure it to prevent the stack from being accidentally deleted.
To set stack deletion protection, follow these steps.

1. Click the **All Services > Management > Infrastructure Builder** menu. Navigate to the **Service Home** page.
2. Click the **Stack > Stack List** menu on the **Service Home** page. Navigate to the **Stack List** page.
3. **Stack List** page, click the stack you want to configure. Navigate to the **Stack Details** page.
4. **Stack Details** page's **Detailed Information** tab, click the **Prevent Deletion** item's **Edit** button. **Delete protection** popup window opens.
5. After selecting or deselecting **Use**, click the **Confirm** button. Do you want to modify the delete protection? A confirmation popup will open.
6. Click the **Confirm** button. The delete protection setting will be changed.
    * A stack with deletion protection enabled cannot be deleted until the protection is disabled.
    * Nested stacks cannot be modified because they use the root stack's deletion protection settings as is.

# Delete Stack {#delete}

When a stack is deleted, the resources managed by the stack are deleted by default. However, if the resource's DeletionPolicy is set to **Retain** in the template, the resource will not be deleted and will be retained.

> **Caution**
>
> * When a stack is deleted, the resources included in the stack are deleted by default and cannot be recovered.
>     * However, if the deletion policy in the template is set to **Retain**, the resource will not be deleted.
> * If there are resources that should be retained without deletion, check the template’s deletion policy before deleting the stack.

To delete the stack, follow these steps.

1. **All Services > Management > Infrastructure Builder** menu, click it. 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 you want to delete. Navigate to the **Stack Details** page.
4. On the **Stack Details** page, click the **Delete Stack** button. The confirmation popup opens.
5. After confirming the stack name to delete, click the **Confirm** button. "Stack deletion request has been completed." message is displayed and the stack and the resources managed by the stack are deleted.
    * Depending on the scale, deletion may take several minutes, and the completion result can be viewed in the notification at the top right of the screen.
    * Resources with a deletion policy of **Retain** are not deleted and are retained.
    * Stacks with deletion protection enabled cannot be deleted. First, disable the delete protection.

---

Section pages:

- [Manage Templates](/en/userguide/management/infrastructure_builder/how_to_guides/template/index.md)
- [Manage Change Sets](/en/userguide/management/infrastructure_builder/how_to_guides/change_set/index.md)
- [Managing Stack Sets](/en/userguide/management/infrastructure_builder/how_to_guides/stack_set/index.md)
- [Detecting Drift](/en/userguide/management/infrastructure_builder/how_to_guides/drift/index.md)
- [Verify Export](/en/userguide/management/infrastructure_builder/how_to_guides/export/index.md)
- [Manage Delegated Administrators](/en/userguide/management/infrastructure_builder/how_to_guides/delegated_admin/index.md)
