All Products
Search
Document Center

Resource Orchestration Service:Update a stack

Last Updated:Dec 20, 2023

If you want to change the template or modify the template parameters of a stack, you can update the stack. This topic describes how to update a stack in the Resource Orchestration Service (ROS) console.

Prerequisites

A stack is created. For more information, see Create a stack.

Limits

You can update a stack only if it is in one of the states described in the following table.

State

Description

CREATE_COMPLETE

The stack is created.

UPDATE_FAILED

The stack fails to be updated.

UPDATE_COMPLETE

The stack is updated.

ROLLBACK_COMPLETE

The resources of the stack are rolled back.

ROLLBACK_FAILED

The resources of the stack fail to be rolled back.

IMPORT_CREATE_COMPLETE

The stack is created by using imported resources.

IMPORT_UPDATE_COMPLETE

The stack is updated by using imported resources.

IMPORT_UPDATE_FAILED

The stack fails to be updated by using imported resources.

IMPORT_UPDATE_ROLLBACK_COMPLETE

The resources are rolled back after the stack fails to be updated by using imported resources.

IMPORT_UPDATE_ROLLBACK_FAILED

The resources fail to be rolled back after the stack fails to be updated by using imported resources.

CHECK_FAILED

The stack fails to be validated.

CHECK_COMPLETE

The stack is validated.

Procedure

  1. Log on to the ROS console.

  2. In the left-side navigation pane, click Stacks.

  3. In the top navigation bar, select the region where the stack you want to update resides from the region drop-down list. For example, select China (Hangzhou).

  4. On the Stacks page, find the stack and click Update in the Actions column.

  5. In the Configure Template Parameters section of the Configure Parameters step, follow the on-screen instructions to configure the parameters.

    Note

    If you want to change the template of your stack, click Previous to go to the Select Template step. In the Prepare Template section, select Replace Current Template. After you change the template, click Next to go to the Configure Template Parameters section of the Configure Parameters step. Then, follow the on-screen instructions to configure the parameters.

  6. In the Configure Stack Settings section, follow the on-screen instructions to configure the Stack Policy, Timeout Period, RAM Role, Whether to enable replacement update, and Tags parameters based on your business requirements.

    Note
    • If you want to specify the Stack Policy parameter, you can select Input Stack Policy and enter a stack policy. This policy takes effect even if you do not configure the stack policy the next time you update the stack.

    • A stack policy is a JSON or YAML file. For more information, see Stack policies.

  7. (Optional) Click Next to go to the Check and Confirm step. In this step, check and confirm the configurations that you update.

  8. Click Confirm.