Skip to main content
IAM Policy Map

AmazonECSInfrastructureRolePolicyForVolumes

OperatorService roleActivePermissions reviewedShow on mapCompare

Summary

Provides access to other AWS service resources required to manage volumes associated with ECS workloads on your behalf.

Permissions imported from the AWS Managed Policy Reference Guide; other sections pending editorial review.

Identity

ARN
arn:aws:iam::aws:policy/service-role/AmazonECSInfrastructureRolePolicyForVolumes
Default version
v5
Created
Last edited
Services
ec2

Control-plane actions (8)

By access level: 3 List, 1 Tagging, 4 Write.

Control-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
EC28 of 8343 List, 1 Tagging, 4 Write; 5 restricted, 2 conditionalec2:AttachVolume, ec2:CreateTags, ec2:CreateVolume, ec2:DeleteVolume, ec2:DescribeAvailabilityZones, ec2:DescribeInstances, ec2:DescribeVolumes, ec2:DetachVolume
EC2: 8 actions
  • ec2:AttachVolume (Write)
  • ec2:CreateTags (Tagging)
  • ec2:CreateVolume (Write)
  • ec2:DeleteVolume (Write)
  • ec2:DescribeAvailabilityZones (List)
  • ec2:DescribeInstances (List)
  • ec2:DescribeVolumes (List)
  • ec2:DetachVolume (Write)

Data-plane actions (0)

By access level: none.

This policy grants no actions in this plane.

Excluded and conditional actions

No patterns are excluded by NotAction or Deny statements.

Resource scope and attachment

Resource scope across granted actions: mixed.

Can be attached: Yes, to users, groups and roles.

Why this tier

  • Grants 5 write, tagging or permissions-management actions, short of full control of any service.

Guidance

Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.

Same service

Same domain

Frequently asked questions

Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.

Policy JSON

Download policy.json

{
  "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"
        }
      }
    }
  ]
}

Version history

Current version v5, edited by AWS on 2026-02-12. Version history is recorded from 2026-11-11. Earlier versions are in the IAM console under Policy versions.

Attach snippets

AWS CLI

aws iam attach-role-policy --role-name ROLE_NAME --policy-arn arn:aws:iam::aws:policy/service-role/AmazonECSInfrastructureRolePolicyForVolumes
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/service-role/AmazonECSInfrastructureRolePolicyForVolumes
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/service-role/AmazonECSInfrastructureRolePolicyForVolumes

CloudFormation

Resources:
  ExampleRole:
    Type: AWS::IAM::Role
    Properties:
      AssumeRolePolicyDocument: {}  # replace with your trust policy
      ManagedPolicyArns:
        - arn:aws:iam::aws:policy/service-role/AmazonECSInfrastructureRolePolicyForVolumes

Terraform

resource "aws_iam_role_policy_attachment" "service_role_amazonecsinfrastructurerolepolicyforvolumes" {
  role       = aws_iam_role.example.name
  policy_arn = "arn:aws:iam::aws:policy/service-role/AmazonECSInfrastructureRolePolicyForVolumes"
}

CDK (TypeScript)

role.addManagedPolicy(
  iam.ManagedPolicy.fromAwsManagedPolicyName("service-role/AmazonECSInfrastructureRolePolicyForVolumes"),
);

Sources

Pending editorial review. No editorial sources are listed yet.