Create a Recycle Bin retention rule
When you create a retention rule, you must specify the following required parameters:
-
The resource type to protect (volumes, snapshots, or AMIs).
-
The type of retention rule (tag-level or Region-level). Tag-level rules protect only resources that have specific tags. Region-level rules protect all resources in the Region, but can exclude resources that have specific tags.
-
The retention period to retain resources after they are deleted. After this period expires, the resources are permanently deleted from the Recycle Bin. The supported retention periods are:
-
EBS volumes: 1 - 7 days
-
EBS snapshots and EBS-backed AMIs: 1 - 365 days
-
You can also optionally specify a rule name and description of up to 255 characters each, and tags to help you identify and organize your rules. We recommend that you do not include personally identifying, confidential, or sensitive information in the name, description, or tags.
You can also optionally lock Region-level retention rules on creation. If you lock a retention rule on creation, you must also specify the unlock delay period, which can be 7 to 30 days. Retention rules remain unlocked by default unless you explicitly lock them.
Note
Retention rules function only in the Regions in which they are created. If you intend to use Recycle Bin in other Regions, you must create additional retention rules in those Regions.
You can create a Recycle Bin retention rule using one of the following methods.