Update a stack

更新时间:
复制 MD 格式

You can update a stack to change its template or template parameters. This topic describes how to update a stack in Resource Orchestration Service (ROS).

Prerequisites

Ensure that you have created a stack. For more information, see Create a stack.

Limitations

You can update a stack only if it is in one of the following states:

State

Description

CREATE_COMPLETE

The stack was created successfully.

UPDATE_FAILED

The stack update failed.

UPDATE_COMPLETE

The stack was updated successfully.

ROLLBACK_COMPLETE

The stack was rolled back successfully.

ROLLBACK_FAILED

The stack rollback failed.

IMPORT_CREATE_COMPLETE

The stack was created successfully from imported resources.

IMPORT_UPDATE_COMPLETE

The stack was updated successfully with imported resources.

IMPORT_UPDATE_FAILED

The stack update with imported resources failed.

IMPORT_UPDATE_ROLLBACK_COMPLETE

The stack update with imported resources failed, and the rollback was successful.

IMPORT_UPDATE_ROLLBACK_FAILED

The stack update with imported resources failed, and the rollback also failed.

CHECK_FAILED

The stack validation failed.

CHECK_COMPLETE

The stack validation was successful.

Procedure

  1. Log in to the ROS console.

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

  3. In the top menu bar, select a region for the stack from the region drop-down list. For example, select China (Hangzhou).

  4. On the Stacks page, find the stack that you want to manage and click Update in the Actions column.

  5. On the Configure Parameters page, reconfigure the parameters.

    Note

    To change the template, click Previous to go to the Select Template page. In the Prepare Template section, select Replace Current Template. After you modify the template, click Next. On the Configure Template Parameters page, configure the parameters.

  6. In the Configure Stack Settings section, configure Stack Policy, Timeout Period, RAM Role, Whether to enable replacement update, and Tags.

    Note
    • You can select Input Stack Policy to define a policy that persists across all subsequent updates. You can also select Enter Temporary Stack Policy to define a policy that is used only for the current update.

    • A stack policy is a document in the JSON or YAML format. For more information, see Stack policy.

  7. Optional: Click Next to review and confirm the configuration changes.

  8. Click Modify.