Skip to content

RosDeletionPolicy

With the DeletionPolicy attribute you can preserve or (in some cases) backup a resource when its stack is deleted.

You specify a DeletionPolicy attribute for each resource that you want to control. If a resource has no DeletionPolicy attribute, ROS deletes the resource by default.

Members

Name Description
DELETE ROS will deletes the resource and all its content if applicable during stack deletion.
RETAIN ROS keeps the resource without deleting the resource or its contents when its stack is deleted.

DELETE

ROS will deletes the resource and all its content if applicable during stack deletion.

You can add this deletion policy to any resource type.


RETAIN

ROS keeps the resource without deleting the resource or its contents when its stack is deleted.

You can add this deletion policy to any resource type.