ComputeOptimizerAutomationServiceRolePolicy

Last Modified

Mar 12, 2026

March 12, 2026 at 09:28 PM UTC

Version

v1

Total Versions

1

Created

Nov 15, 2025

Actions

8

Policy Document

View on GitHub
{
  "PolicyVersion": {
    "Document": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Sid": "EBSReadOnly",
          "Effect": "Allow",
          "Action": [
            "ec2:DescribeVolumes",
            "ec2:DescribeSnapshots",
            "ec2:DescribeVolumesModifications"
          ],
          "Resource": "*"
        },
        {
          "Sid": "EBSVolumeModification",
          "Effect": "Allow",
          "Action": [
            "ec2:ModifyVolume",
            "ec2:DeleteVolume"
          ],
          "Resource": "*",
          "Condition": {
            "Null": {
              "aws:ResourceTag/exclude-from-compute-optimizer-automation": "true"
            }
          }
        },
        {
          "Sid": "CreateEBSSnapshot",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateSnapshot"
          ],
          "Resource": "*"
        },
        {
          "Sid": "RollbackEBSVolumeDeletion",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateVolume"
          ],
          "Resource": "*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceAccount": "${aws:PrincipalAccount}"
            }
          }
        },
        {
          "Sid": "Tag",
          "Effect": "Allow",
          "Action": [
            "ec2:CreateTags"
          ],
          "Resource": [
            "arn:aws:ec2:*:*:volume/*",
            "arn:aws:ec2:*:*:snapshot/*"
          ],
          "Condition": {
            "StringEquals": {
              "ec2:CreateAction": [
                "CreateVolume",
                "CreateSnapshot"
              ]
            }
          }
        }
      ]
    },
    "VersionId": "v1",
    "IsDefaultVersion": true,
    "CreateDate": "2025-11-15T01:19:07+00:00"
  }
}

Version History (2 recorded)

Raw history
v1updated

scope changed, no action added or removed

e77572e

ComputeOptimizerAutomationServiceRolePolicy - Policy Version v1

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

Nov 17, 2025

12b594c