CloudTrailEventContext
Last Modified
Mar 12, 2026
March 12, 2026 at 09:28 PM UTC
Version
v1
Total Versions
1
Created
May 15, 2025
Actions
8
Risk
no risk signalRead from this policy document alone: trust policies, boundaries and SCPs in your account still decide what actually succeeds. How this is assessed
IAM Access Analyzer (1)
- Error / MISSING_QUALIFIER
The request context key events:detail-type has multiple values. Use the ForAllValues or ForAnyValue condition key qualifiers in your policy. AWS docs
Policy Document
View on GitHub{
"PolicyVersion": {
"Document": {
"Version": "2012-10-17",
"Statement": [
{
"Sid": "CloudTrailEventContextPermissionForTag",
"Effect": "Allow",
"Action": "tag:GetResources",
"Resource": "*",
"Condition": {
"StringEquals": {
"aws:ResourceAccount": "${aws:PrincipalAccount}"
}
}
},
{
"Sid": "AllowEventBridgeRuleCreation",
"Effect": "Allow",
"Action": "events:PutRule",
"Resource": "arn:aws:events:*:*:rule/CloudTrailEventContext*",
"Condition": {
"ForAllValues:StringEquals": {
"events:source": "aws.tag"
},
"StringEquals": {
"events:creatorAccount": "${aws:PrincipalAccount}",
"events:detail-type": "Tag Change on Resource",
"events:ManagedBy": "context.cloudtrail.amazonaws.com"
}
}
},
{
"Sid": "AllowEventBridgeRuleWrite",
"Effect": "Allow",
"Action": [
"events:PutTargets",
"events:DeleteRule",
"events:RemoveTargets"
],
"Resource": "arn:aws:events:*:*:rule/CloudTrailEventContext*",
"Condition": {
"StringEquals": {
"events:creatorAccount": "${aws:PrincipalAccount}",
"events:ManagedBy": "context.cloudtrail.amazonaws.com"
}
}
},
{
"Sid": "AllowEventBridgeRuleRead",
"Effect": "Allow",
"Action": [
"events:DescribeRule",
"events:ListTargetsByRule"
],
"Condition": {
"StringEquals": {
"events:creatorAccount": "${aws:PrincipalAccount}"
}
},
"Resource": "arn:aws:events:*:*:rule/CloudTrailEventContext*"
},
{
"Sid": "AllowEventBridgeRuleList",
"Effect": "Allow",
"Action": [
"events:ListRules"
],
"Resource": "*"
}
]
},
"VersionId": "v1",
"IsDefaultVersion": true,
"CreateDate": "2025-05-15T13:52:06+00:00"
}
}Version History (2 recorded)
Raw historyv1updated
scope changed, no action added or removed
Update detected
No recorded action delta - this version predates the change index. View the raw diff.
May 15, 2025
ee46809