cloudwatch:TagResource

Tagging

cloudwatch:TagResource is a Tagging access-level action in the cloudwatch service. Grants permission to add tags to an Amazon CloudWatch resource

Resource types

ARNs that cloudwatch:TagResource can be scoped to in an IAM policy.

arn:${Partition}:cloudwatch:${Region}:${Account}:alarm:${AlarmName}
alarm
arn:${Partition}:cloudwatch:${Region}:${Account}:alarm-mute-rule:${AlarmMuteRuleName}
alarm-mute-rule
arn:${Partition}:cloudwatch::${Account}:dashboard/${DashboardName}
dashboard
arn:${Partition}:cloudwatch:${Region}:${Account}:dataset/${DatasetId}
dataset
arn:${Partition}:cloudwatch:${Region}:${Account}:insight-rule/${InsightRuleName}
insight-rule
arn:${Partition}:cloudwatch:${Region}:${Account}:metric-stream/${MetricStreamName}
metric-stream
arn:${Partition}:cloudwatch:${Region}:${Account}:service/${ServiceName}-${UniqueAttributesHex}
service
arn:${Partition}:cloudwatch:${Region}:${Account}:slo/${SloName}
slo

Condition keys

Keys you can use in the Condition block of a policy that grants cloudwatch:TagResource.

aws:ResourceTag/${TagKey} String

Filters access by tags associated with the resource

Example IAM policy

A minimal policy that allows cloudwatch:TagResource. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowCloudwatchTagResource",
      "Effect": "Allow",
      "Action": "cloudwatch:TagResource",
      "Resource": "*"
    }
  ]
}

Related actions in cloudwatch

View all cloudwatch actions →