AWS-ArchiveEBSSnapshots - Amazon Systems Manager Automation runbook reference
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS-ArchiveEBSSnapshots

Description

The AWS-ArchiveEBSSnapshots runbook helps you archive snapshots by specifying the tag you've applied to your snapshots.

Run this Automation (console)

Document type

Automation

Owner

Amazon

Platforms

Linux, macOS, Windows

Parameters

  • AutomationAssumeRole

    Type: String

    Description: (Optional) The Amazon Resource Name (ARN) of the Amazon Identity and Access Management (IAM) role that allows Systems Manager Automation to perform the actions on your behalf. If no role is specified, Systems Manager Automation uses the permissions of the user that starts this runbook.

  • Description

    Type: String

    Description: (Optional) A description for the Amazon EBS snapshot.

  • DryRun

    Type: String

    Valid values: Yes | No

    Description: (Required) Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.

  • RetentionCount

    Type: String

    Description: (Optional) The number of snapshots you want to archive. Don't specify a value for this parameter if you specify a value for RetentionDays.

  • RetentionDays

    Type: String

    Description: (Optional) The number of previous days of snapshots you want to archive. Don't specify a value for this parameter if you specify a value for RetentionCount.

  • TagKey

    Type: String

    Description: (Required) The key of the tag assigned to the snapshots you want to archive.

  • TagValue

    Type: String

    Description: (Required) The value of the tag assigned to the snapshots you want to archive.

Document Steps

aws:executeAwsApi - Archives snapshots using the tag you specify using the TagKey and TagValue parameters.