AmazonECSInfrastructureRolePolicyForVolumes

Last Modified

Mar 12, 2026

March 12, 2026 at 09:27 PM UTC

Version

v5

Total Versions

3

Created

Feb 12, 2026

Actions

11

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 (3)

  • Warning / TYPE_MISMATCH

    Use the operator type String, Numeric instead of operator ARN for the condition key aws:RequestTag/AmazonECSCreated. AWS docs

  • Warning / TYPE_MISMATCH

    Use the operator type String, Numeric instead of operator ARN for the condition key aws:RequestTag/AmazonECSCreated. AWS docs

  • Warning / TYPE_MISMATCH

    Use the operator type String instead of operator ARN for the condition key aws:ResourceTag/AmazonECSCreated. AWS docs

Policy Document

View on GitHub
{
  "PolicyVersion": {
    "Document": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Sid": "CreateEBSManagedVolume",
          "Effect": "Allow",
          "Action": "ec2:CreateVolume",
          "Resource": "arn:aws:ec2:*:*:volume/*",
          "Condition": {
            "ArnLike": {
              "aws:RequestTag/AmazonECSCreated": "arn:aws:ecs:*:*:task/*"
            },
            "StringEquals": {
              "aws:RequestTag/AmazonECSManaged": "true"
            }
          }
        },
        {
          "Sid": "CreateEBSManagedVolumeFromSnapshot",
          "Effect": "Allow",
          "Action": "ec2:CreateVolume",
          "Resource": "arn:aws:ec2:*:*:snapshot/*"
        },
        {
          "Sid": "TagOnCreateVolume",
          "Effect": "Allow",
          "Action": "ec2:CreateTags",
          "Resource": "arn:aws:ec2:*:*:volume/*",
          "Condition": {
            "ArnLike": {
              "aws:RequestTag/AmazonECSCreated": "arn:aws:ecs:*:*:task/*"
            },
            "StringEquals": {
              "ec2:CreateAction": "CreateVolume",
              "aws:RequestTag/AmazonECSManaged": "true"
            }
          }
        },
        {
          "Sid": "DescribeVolumesForLifecycle",
          "Effect": "Allow",
          "Action": [
            "ec2:DescribeVolumes",
            "ec2:DescribeAvailabilityZones"
          ],
          "Resource": "*"
        },
        {
          "Sid": "DescribeInstancesForAttachingVolume",
          "Effect": "Allow",
          "Action": [
            "ec2:DescribeInstances"
          ],
          "Resource": "*"
        },
        {
          "Sid": "ManageEBSVolumeLifecycle",
          "Effect": "Allow",
          "Action": [
            "ec2:AttachVolume",
            "ec2:DetachVolume"
          ],
          "Resource": "arn:aws:ec2:*:*:volume/*",
          "Condition": {
            "StringEquals": {
              "aws:ResourceTag/AmazonECSManaged": "true"
            }
          }
        },
        {
          "Sid": "ManageVolumeAttachmentsForEC2",
          "Effect": "Allow",
          "Action": [
            "ec2:AttachVolume",
            "ec2:DetachVolume"
          ],
          "Resource": "arn:aws:ec2:*:*:instance/*"
        },
        {
          "Sid": "DeleteEBSManagedVolume",
          "Effect": "Allow",
          "Action": "ec2:DeleteVolume",
          "Resource": "arn:aws:ec2:*:*:volume/*",
          "Condition": {
            "ArnLike": {
              "aws:ResourceTag/AmazonECSCreated": "arn:aws:ecs:*:*:task/*"
            },
            "StringEquals": {
              "aws:ResourceTag/AmazonECSManaged": "true"
            }
          }
        }
      ]
    },
    "VersionId": "v5",
    "IsDefaultVersion": true,
    "CreateDate": "2026-02-12T18:02:34+00:00"
  }
}

Version History (8 recorded)

Raw history

AmazonECSInfrastructureRolePolicyForVolumes - Policy Version v5

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

Mar 12, 2026

f3ba17a

AmazonECSInfrastructureRolePolicyForVolumes - Policy Version v5

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

Feb 12, 2026

c49dfac

AmazonECSInfrastructureRolePolicyForVolumes - Policy Version v4

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

Feb 12, 2026

02a46bb

Update detected

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

May 28, 2025

0a78067

Update detected

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

Oct 10, 2024

e89fcc8

Update detected

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

Sep 18, 2024

aafbae9

Update detected

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

May 13, 2024

1b36617

Update detected

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

Jan 10, 2024

a6c0605