Description

The Tag EBS Volumes action can be used to add tags to EBS volumes. The tags can be new tags, or those copied from the attached EC2 instance.

Test Mode

This action includes a "test mode" as a way of determining which volumes will be tagged without actually tagging the volumes. This way, you can fine tune your action without concern for tagging the wrong volumes. Test Mode is on by default.

When test mode is enabled, execute your action normally then check the action logs to verify that only volumes that should have been tagged would have been tagged, and that volumes that should not have been tagged would not have been tagged.

When you are satisfied, disable Test Mode.

Settings

Please see Common Action Settings for a description of settings common to all action types.

Volume Identification Method

Indicates the selection method of the EBS volumes to be tagged.

  • By Volume ID - Tags the specified volumes
  • By Resource Tag - Tags volumes that match a resource tag value
  • All - Tags all volumes

Volume IDs

Required when Volume Identification Method is set to "By Volume ID". Indicates the list of volume IDs which will be tagged.

Resource Tag Name

Required if Volume Identification Method is "By Resource Tag". Indicates the name of the resource tag used to compare.

Resource Tag Value

Required if Volume Identification Method is "By Resource Tag". Indicates the value of the resource tag used to compare.

Copy Tags From Instance

Indicates if tags should be copied from the attached EC2 instance. Possible options include:

  • No
  • Yes, copy all tags
  • Yes, but only tags missing from the volume
  • Yes, but only tags already existing on the volume

New Resource Tags To Set

Optional. Resource tags can be added to the volumes. Click "Add Tag" to add a tag and fill the tag data. Any number of tags can be set, although Amazon EC2 has a limit of 10 (including the Name tag). Macros can be used in the tag values to include run-time data.

Set New Tags Method

Indicates the tags which are to be set. Possible options include:

  • Set all tags
  • Set missing tags only
  • Set existing tags only

Test Mode

Enables and disabled Test Mode (see above).

Amazon Commands Used

The following Amazon AWS commands are used. The access key should have permission to execute all of them.

  • ec2:DescribeInstances
  • ec2:DescribeVolumes
  • ec2:CreateTags
Did this answer your question?