CmdID

CmdID / aws / aws resourcegroupstaggingapi

aws resourcegroupstaggingapi tag-resources

Applies one or more tags to the specified resources. AWS CLI reference

1 example 2 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To attach a tag to a resource

The following tag-resources example tags the specified resource with a key name and value.

aws resourcegroupstaggingapi tag-resources --resource-arn-list arn:aws:s3:::MyProductionBucket --tags Environment=Production,CostCenter=1234Identify
--resource-arn-listSpecifies the list of ARNs of the resources that you want to apply tags to.
--tagsSpecifies a list of tags that you want to add to the specified resources.
Its output
{
    "FailedResourcesMap": {}
}

For more information, see Managing tags with Tag Editor in the Tagging AWS Resources and Tag Editor User Guide.

Options

2 in the AWS CLI reference
--resource-arn-listSpecifies the list of ARNs of the resources that you want to apply tags to.
--tagsSpecifies a list of tags that you want to add to the specified resources.