CmdID

CmdID / aws / aws iam

aws iam tag-policy

Adds one or more tags to an IAM customer managed policy. 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 add a tag to a customer managed policy

The following tag-policy example adds a tag with a Department name to the specified customer managed policy.

aws iam tag-policy --policy-arn arn:aws:iam::123456789012:policy/billing-access --tags '[{"Key": "Department", "Value": "Accounting"}]'Identify
--policy-arnThe ARN of the IAM customer managed policy to which you want to add tags.
--tagsThe list of tags that you want to attach to the IAM customer managed policy.

This command produces no output.

For more information, see Tagging IAM resources in the AWS IAM User Guide.

Options

2 in the AWS CLI reference
--policy-arnThe ARN of the IAM customer managed policy to which you want to add tags.
--tagsThe list of tags that you want to attach to the IAM customer managed policy.