CloudWatchLogsAPIKeyAccess

Last Modified

Mar 12, 2026

March 12, 2026 at 09:28 PM UTC

Version

v1

Total Versions

1

Created

Feb 20, 2026

Actions

5

Risk

no risk signal

Read 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)

  • Warning / TYPE_MISMATCH

    Use the operator type String instead of operator ARN for the condition key kms:EncryptionContext:aws:logs:arn. AWS docs

Policy Document

View on GitHub
{
  "PolicyVersion": {
    "Document": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Sid": "LogsAPIs",
          "Effect": "Allow",
          "Action": [
            "logs:CallWithBearerToken",
            "logs:PutLogEvents"
          ],
          "Resource": "*"
        },
        {
          "Sid": "KMSAPIs",
          "Effect": "Allow",
          "Action": [
            "kms:GenerateDataKey",
            "kms:Decrypt"
          ],
          "Condition": {
            "StringLike": {
              "kms:ViaService": "logs.*.amazonaws.com"
            },
            "ArnLike": {
              "kms:EncryptionContext:aws:logs:arn": "arn:aws:logs:*:*:log-group:*"
            }
          },
          "Resource": "arn:aws:kms:*:*:key/*"
        },
        {
          "Sid": "KMSDescribeAPIs",
          "Effect": "Allow",
          "Action": [
            "kms:DescribeKey"
          ],
          "Condition": {
            "StringLike": {
              "kms:ViaService": "logs.*.amazonaws.com"
            }
          },
          "Resource": "arn:aws:kms:*:*:key/*"
        }
      ]
    },
    "VersionId": "v1",
    "IsDefaultVersion": true,
    "CreateDate": "2026-02-20T19:42:07+00:00"
  }
}

Version History (2 recorded)

Raw history
v1updated

scope changed, no action added or removed

bc62f7c

CloudWatchLogsAPIKeyAccess - Policy Version v1

No recorded action delta - this version predates the change index. View the raw diff.

Feb 20, 2026

8ffe3c1