Skip to main content

IAM Policy Uses Legacy CloudWatch Log Group ARN Format

Overview​

Starting April 26, 2027, AWS CloudWatch Logs will enforce the standard log group ARN format (arn:aws:logs:region:account:log-group:MyGroup) for IAM authorization. Policies that refer to a log group using the legacy format with a trailing :* (arn:aws:logs:region:account:log-group:MyGroup:*), or only through its log stream ARNs (...:log-group:MyGroup:log-stream:*), will stop taking effect for log group actions such as logs:DescribeLogStreams, logs:FilterLogEvents, logs:StartQuery, logs:PutRetentionPolicy and logs:DeleteLogGroup on that date.

  • An Allow statement will stop granting those actions, which can break applications, pipelines, and users that depend on them.
  • A Deny statement will stop denying those actions, which can silently grant access that was intended to be blocked.

This check evaluates customer managed policies and the inline policies of IAM users, groups, and roles. A statement is not flagged when its actions are limited to log stream actions (logs:CreateLogStream, logs:DeleteLogStream, logs:GetLogEvents and logs:PutLogEvents), which are unaffected, or when the same statement already includes an ARN that covers the standard log group ARN.

Remediation Instructions​

For each flagged ARN, add the standard log group ARN shown in the output to the statement's Resource (or NotResource) element, alongside the existing ARN. Keep the :* or log stream ARN only where log stream actions (logs:CreateLogStream, logs:PutLogEvents, etc.) are intended.

For example, replace:

"Resource": "arn:aws:logs:us-east-1:123456789012:log-group:MyGroup:*"

with:

"Resource": [
"arn:aws:logs:us-east-1:123456789012:log-group:MyGroup",
"arn:aws:logs:us-east-1:123456789012:log-group:MyGroup:*"
]

Use AWS's CloudWatch Logs IAM policy validator to confirm the updated policy still grants the required actions.

Vendor​

AWS

Cloud Service​

IAM

References​

https://github.com/aws-samples/sample-cloudwatch-logs-iam-policy-validator/blob/main/LIST_IMPACTED_POLICIES.md, https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazoncloudwatchlogs.html

Severity​

4

Item Types​

AWS::IAM::ManagedPolicy, AWS::IAM::Role, AWS::IAM::User, AWS::IAM::Group