If you want to change the template of your stack or modify template parameters, you 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 about how to create a stack, see Create a stack.

Limits

You can update a stack only if it is in one of the following states:
Status Description
CREATE_COMPLETE The stack is created.
UPDATE_FAILED The stack fails to be updated
UPDATE_COMPLETE The stack is updated.
ROLLBACK_COMPLETE The stack is rolled back.
ROLLBACK_FAILED The stack fails to be rolled back
IMPORT_CREATE_COMPLETE The stack is created by importing resources.
IMPORT_UPDATE_COMPLETE The stack is updated by importing resources.
IMPORT_UPDATE_FAILED The stack fails to be updated by importing resources.
IMPORT_UPDATE_ROLLBACK_COMPLETE The stack fails to be updated by importing resources and is rolled back.
IMPORT_UPDATE_ROLLBACK_FAILED The stack fails to be updated by importing resources and fails to be rolled back.
CHECK_FAILED The stack fails to be verified.
CHECK_COMPLETE The stack is verified.

Procedure

  1. Log on to the ROS console.
  2. In the left-side navigation pane, click Stacks.
  3. In the upper-left corner, select the region where the stack that you want to update resides from the drop-down list.
  4. On the Stacks page, find the stack that you want to update, and click Update in the Actions column.
  5. In the Configure Template 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. Then, select Replace Current Template in the Prepare Template section. After you change the template, click Next to go to the Configure Template Parameters step. Then, follow the on-screen instructions to configure the parameters.
  6. Optional:Click Next to go to the Configure Stack step. Follow the on-screen instructions to configure Stack Policy, Timeout Period, RAM Role, Whether to enable replacement update, and Tags.
    Note
    • If you want to configure a stack policy, you can select Input Stack Policy. This policy takes effect even if you do not configure the stack policy the next time you update the stack. Alternatively, you can select Optional. Specify a temporary stack policy in JSON or YAML format. This policy does not take effect the next time you update the stack.
    • The stack policy must be a file that is in JSON or YAML format. For more information, see Stack policies.
  7. Optional:Click Next to go to the Check and Confirm step. Check and confirm your configurations.
  8. Click Confirm.