Skip to main content
IAM Policy Map

AWSElasticBeanstalkCustomPlatformforEC2Role

OperatorAWS managedActivePermissions reviewedShow on mapCompare

Summary

Provide the instance in your custom platform builder environment permission to launch EC2 instance, create EBS snapshot and AMI, stream logs to Amazon CloudWatch Logs, and store artifacts in Amazon S3.

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

Identity

ARN
arn:aws:iam::aws:policy/AWSElasticBeanstalkCustomPlatformforEC2Role
Default version
v1
Created
Last edited
Services
ec2, logs, s3

Control-plane actions (106)

By access level: 25 List, 1 Permissions management, 56 Read, 1 Tagging, 23 Write.

Control-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
EC232 of 8349 List, 1 Permissions management, 1 Read, 1 Tagging, 20 Write; 0 restricted, 0 conditionalec2:AttachVolume, ec2:AuthorizeSecurityGroupIngress, ec2:CopyImage, ec2:CreateImage, ec2:CreateKeypair, ec2:CreateSecurityGroup, ec2:CreateSnapshot, ec2:CreateTags, ec2:CreateVolume, ec2:DeleteKeypair, ec2:DeleteSecurityGroup, ec2:DeleteSnapshot and 20 more
CloudWatch Logs4 of 1331 List, 3 Write; 4 restricted, 0 conditionallogs:CreateLogGroup, logs:CreateLogStream, logs:DescribeLogStreams, logs:PutLogEvents
S370 of 15515 List, 55 Read; 70 restricted, 0 conditionals3:Get*, s3:List*
EC2: 32 actions
  • ec2:AttachVolume (Write)
  • ec2:AuthorizeSecurityGroupIngress (Write)
  • ec2:CopyImage (Write)
  • ec2:CreateImage (Write)
  • ec2:CreateKeyPair (Write)
  • ec2:CreateSecurityGroup (Write)
  • ec2:CreateSnapshot (Write)
  • ec2:CreateTags (Tagging)
  • ec2:CreateVolume (Write)
  • ec2:DeleteKeyPair (Write)
  • ec2:DeleteSecurityGroup (Write)
  • ec2:DeleteSnapshot (Write)
  • ec2:DeleteVolume (Write)
  • ec2:DeregisterImage (Write)
  • ec2:DescribeImageAttribute (List)
  • ec2:DescribeImages (List)
  • ec2:DescribeInstances (List)
  • ec2:DescribeRegions (List)
  • ec2:DescribeSecurityGroups (List)
  • ec2:DescribeSnapshots (List)
  • ec2:DescribeSubnets (List)
  • ec2:DescribeTags (List)
  • ec2:DescribeVolumes (List)
  • ec2:DetachVolume (Write)
  • ec2:GetPasswordData (Read)
  • ec2:ModifyImageAttribute (Write)
  • ec2:ModifyInstanceAttribute (Write)
  • ec2:ModifySnapshotAttribute (Permissions management)
  • ec2:RegisterImage (Write)
  • ec2:RunInstances (Write)
  • ec2:StopInstances (Write)
  • ec2:TerminateInstances (Write)
CloudWatch Logs: 4 actions
  • logs:CreateLogGroup (Write)
  • logs:CreateLogStream (Write)
  • logs:DescribeLogStreams (List)
  • logs:PutLogEvents (Write)
S3: 70 actions
  • s3:GetAccelerateConfiguration (Read)
  • s3:GetAccessGrant (Read)
  • s3:GetAccessGrantsInstance (Read)
  • s3:GetAccessGrantsInstanceForPrefix (Read)
  • s3:GetAccessGrantsInstanceResourcePolicy (Read)
  • s3:GetAccessGrantsLocation (Read)
  • s3:GetAccessPoint (Read)
  • s3:GetAccessPointConfigurationForObjectLambda (Read)
  • s3:GetAccessPointForObjectLambda (Read)
  • s3:GetAccessPointPolicy (Read)
  • s3:GetAccessPointPolicyForObjectLambda (Read)
  • s3:GetAccessPointPolicyStatus (Read)
  • s3:GetAccessPointPolicyStatusForObjectLambda (Read)
  • s3:GetAccountPublicAccessBlock (Read)
  • s3:GetAnalyticsConfiguration (Read)
  • s3:GetBucketAbac (Read)
  • s3:GetBucketAcl (Read)
  • s3:GetBucketCORS (Read)
  • s3:GetBucketLocation (Read)
  • s3:GetBucketLogging (Read)
  • s3:GetBucketMetadataTableConfiguration (Read)
  • s3:GetBucketNotification (Read)
  • s3:GetBucketObjectLockConfiguration (Read)
  • s3:GetBucketOwnershipControls (Read)
  • s3:GetBucketPolicy (Read)
  • s3:GetBucketPolicyStatus (Read)
  • s3:GetBucketPublicAccessBlock (Read)
  • s3:GetBucketRequestPayment (Read)
  • s3:GetBucketTagging (Read)
  • s3:GetBucketVersioning (Read)
  • s3:GetBucketWebsite (Read)
  • s3:GetDataAccess (Read)
  • s3:GetEncryptionConfiguration (Read)
  • s3:GetIntelligentTieringConfiguration (Read)
  • s3:GetInventoryConfiguration (Read)
  • s3:GetJobTagging (Read)
  • s3:GetLifecycleConfiguration (Read)
  • s3:GetMetricsConfiguration (Read)
  • s3:GetMultiRegionAccessPoint (Read)
  • s3:GetMultiRegionAccessPointPolicy (Read)
  • s3:GetMultiRegionAccessPointPolicyStatus (Read)
  • s3:GetMultiRegionAccessPointRoutes (Read)
  • s3:GetObjectAnnotation (Read)
  • s3:GetObjectAttributes (Read)
  • s3:GetObjectTorrent (Read)
  • s3:GetObjectVersionAnnotation (Read)
  • s3:GetObjectVersionAnnotationForReplication (Read)
  • s3:GetObjectVersionAttributes (Read)
  • s3:GetObjectVersionForReplication (Read)
  • s3:GetObjectVersionTorrent (Read)
  • s3:GetReplicationConfiguration (Read)
  • s3:GetStorageLensConfiguration (Read)
  • s3:GetStorageLensConfigurationTagging (Read)
  • s3:GetStorageLensDashboard (Read)
  • s3:GetStorageLensGroup (Read)
  • s3:ListAccessGrants (List)
  • s3:ListAccessGrantsInstances (List)
  • s3:ListAccessGrantsLocations (List)
  • s3:ListAccessPoints (List)
  • s3:ListAccessPointsForObjectLambda (List)
  • s3:ListAllMyBuckets (List)
  • s3:ListBucketMultipartUploads (List)
  • s3:ListCallerAccessGrants (List)
  • s3:ListJobs (List)
  • s3:ListMultiRegionAccessPoints (List)
  • s3:ListObjectAnnotations (List)
  • s3:ListObjectVersionAnnotations (List)
  • s3:ListStorageLensConfigurations (List)
  • s3:ListStorageLensGroups (List)
  • s3:ListTagsForResource (List)

Data-plane actions (12)

By access level: 3 List, 8 Read, 1 Write.

Data-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
S312 of 253 List, 8 Read, 1 Write; 12 restricted, 0 conditionals3:Get*, s3:List*, s3:PutObject
S3: 12 actions
  • s3:GetObject (Read)
  • s3:GetObjectAcl (Read)
  • s3:GetObjectLegalHold (Read)
  • s3:GetObjectRetention (Read)
  • s3:GetObjectTagging (Read)
  • s3:GetObjectVersion (Read)
  • s3:GetObjectVersionAcl (Read)
  • s3:GetObjectVersionTagging (Read)
  • s3:ListBucket (List)
  • s3:ListBucketVersions (List)
  • s3:ListMultipartUploadParts (List)
  • s3:PutObject (Write)

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 26 write, tagging or permissions-management actions, short of full control of any service.
  • Grants data-plane write actions on a data store, but only for scoped resources or under conditions.

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": "EC2Access",
      "Action": [
        "ec2:AttachVolume",
        "ec2:AuthorizeSecurityGroupIngress",
        "ec2:CopyImage",
        "ec2:CreateImage",
        "ec2:CreateKeypair",
        "ec2:CreateSecurityGroup",
        "ec2:CreateSnapshot",
        "ec2:CreateTags",
        "ec2:CreateVolume",
        "ec2:DeleteKeypair",
        "ec2:DeleteSecurityGroup",
        "ec2:DeleteSnapshot",
        "ec2:DeleteVolume",
        "ec2:DeregisterImage",
        "ec2:DescribeImageAttribute",
        "ec2:DescribeImages",
        "ec2:DescribeInstances",
        "ec2:DescribeRegions",
        "ec2:DescribeSecurityGroups",
        "ec2:DescribeSnapshots",
        "ec2:DescribeSubnets",
        "ec2:DescribeTags",
        "ec2:DescribeVolumes",
        "ec2:DetachVolume",
        "ec2:GetPasswordData",
        "ec2:ModifyImageAttribute",
        "ec2:ModifyInstanceAttribute",
        "ec2:ModifySnapshotAttribute",
        "ec2:RegisterImage",
        "ec2:RunInstances",
        "ec2:StopInstances",
        "ec2:TerminateInstances"
      ],
      "Effect": "Allow",
      "Resource": "*"
    },
    {
      "Sid": "BucketAccess",
      "Action": [
        "s3:Get*",
        "s3:List*",
        "s3:PutObject"
      ],
      "Effect": "Allow",
      "Resource": [
        "arn:aws:s3:::elasticbeanstalk-*",
        "arn:aws:s3:::elasticbeanstalk-*/*"
      ]
    },
    {
      "Sid": "CloudWatchLogsAccess",
      "Action": [
        "logs:CreateLogGroup",
        "logs:CreateLogStream",
        "logs:PutLogEvents",
        "logs:DescribeLogStreams"
      ],
      "Effect": "Allow",
      "Resource": "arn:aws:logs:*:*:log-group:/aws/elasticbeanstalk/platform/*"
    }
  ]
}

Version history

Current version v1, edited by AWS on 2017-02-21. 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/AWSElasticBeanstalkCustomPlatformforEC2Role
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/AWSElasticBeanstalkCustomPlatformforEC2Role
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/AWSElasticBeanstalkCustomPlatformforEC2Role

CloudFormation

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

Terraform

resource "aws_iam_role_policy_attachment" "awselasticbeanstalkcustomplatformforec2role" {
  role       = aws_iam_role.example.name
  policy_arn = "arn:aws:iam::aws:policy/AWSElasticBeanstalkCustomPlatformforEC2Role"
}

CDK (TypeScript)

role.addManagedPolicy(
  iam.ManagedPolicy.fromAwsManagedPolicyName("AWSElasticBeanstalkCustomPlatformforEC2Role"),
);

Sources

Pending editorial review. No editorial sources are listed yet.