Deletion protection is a protective measure that is used to prevent ROS stacks from being deleted by accident. Stacks with deletion protection enabled cannot be deleted.

Prerequisites

You have the permission to configure deletion protection by using the ros:SetDeletionProtection operation. For more information, see Use RAM to control resource access.

Background information

You cannot enable deletion protection on stacks that are being deleted. The deletion protection property of a nested stack is the same as that of its parent stack and cannot be changed. To enable deletion protection on a nested stack, you must enable deletion protection on its parent stack.

Enable deletion protection when you create a stack

  1. Log on to the ROS console.
  2. In the left-side navigation pane, click Stacks.
  3. In the upper-left corner, select a region from the drop-down list.
  4. On the Stacks page, click Create Stack.
  5. In the Select Template step of the Create Stack wizard, specify a template, and then click Next.
  6. In the Configure Template Parameters step of the Create Stack wizard, set Stack Name and Parameters, and then click Next.
  7. In the Configure Stack step of the Create Stack wizard, set Deletion Protection.
    • Enabled: enables deletion protection.
    • Disabled: disables deletion protection.
    delete protection
  8. Click Next.
  9. In the Check and Confirm step of the Create Stack wizard, click Create.

Enable deletion protection on an existing stack

  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 target stack resides from the drop-down list.
  4. On the Stacks page, find the stack for which you want to configure deletion protection. Click its ID in the Stack Name column.
  5. In the Basic Information section of the Stack Information tab, turn on Deletion Protection to enable deletion protection.
    Note You can also turn off Deletion Protection to disable deletion protection.

Enable deletion protection on a nested stack

To enable deletion protection on a nested stack, you must enable deletion protection on its parent stack.

  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 target stack resides from the drop-down list.
  4. On the Stacks page, select Show Nested Stacks.
    nested
  5. On the Stacks page, find the nested stack for which you want to configure deletion protection. Click its ID in the Stack Name column.
  6. In the Basic Information section of the Stack Information tab, click Parent Stack ID.
    stack
  7. In the Basic Information section of the Stack Information tab of the parent stack, turn on Deletion Protection to enable deletion protection.
    Note You can also turn off Deletion Protection to disable deletion protection.