AWSElasticBeanstalkRoleECS
Summary
(Elastic Beanstalk operations role) Allows a multicontainer Docker environment to manage Amazon ECS clusters.
Permissions imported from the AWS Managed Policy Reference Guide; other sections pending editorial review.
Identity
- ARN
arn:aws:iam::aws:policy/service-role/AWSElasticBeanstalkRoleECS- Default version
- v2
- Created
- Last edited
- Services
- ecs
Control-plane actions (5)
By access level: 1 Tagging, 4 Write.
| Service | Granted | Access levels and limits | Granted by |
|---|---|---|---|
| Elastic Container Service | 5 of 92 | 1 Tagging, 4 Write; 1 restricted, 1 conditional | ecs:CreateCluster, ecs:DeRegisterTaskDefinition, ecs:DeleteCluster, ecs:RegisterTaskDefinition, ecs:TagResource |
Elastic Container Service: 5 actions
- ecs:CreateCluster (Write)
- ecs:DeleteCluster (Write)
- ecs:DeregisterTaskDefinition (Write)
- ecs:RegisterTaskDefinition (Write)
- ecs:TagResource (Tagging)
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: all-resources.
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.
Related policies
Same service
- AmazonEC2ContainerServiceAutoscaleRole
- AmazonEC2ContainerServiceEventsRole
- AmazonEC2ContainerServiceforEC2Role
- AmazonECS_FullAccess
- AmazonECSInstanceRolePolicyForManagedInstances
- AmazonFISServiceRolePolicy
- AmazonGuardDutyMalwareProtectionServiceRolePolicy
- AWSApplicationAutoscalingECSServicePolicy
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
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowECS",
"Effect": "Allow",
"Action": [
"ecs:CreateCluster",
"ecs:DeleteCluster",
"ecs:RegisterTaskDefinition",
"ecs:DeRegisterTaskDefinition"
],
"Resource": [
"*"
]
},
{
"Sid": "AllowECSTagResource",
"Effect": "Allow",
"Action": [
"ecs:TagResource"
],
"Resource": "*",
"Condition": {
"StringEquals": {
"ecs:CreateAction": [
"CreateCluster",
"RegisterTaskDefinition"
]
}
}
}
]
}
Version history
Current version v2, edited by AWS on 2023-03-23. 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/AWSElasticBeanstalkRoleECS
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/service-role/AWSElasticBeanstalkRoleECS
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/service-role/AWSElasticBeanstalkRoleECSCloudFormation
Resources:
ExampleRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument: {} # replace with your trust policy
ManagedPolicyArns:
- arn:aws:iam::aws:policy/service-role/AWSElasticBeanstalkRoleECSTerraform
resource "aws_iam_role_policy_attachment" "service_role_awselasticbeanstalkroleecs" {
role = aws_iam_role.example.name
policy_arn = "arn:aws:iam::aws:policy/service-role/AWSElasticBeanstalkRoleECS"
}CDK (TypeScript)
role.addManagedPolicy(
iam.ManagedPolicy.fromAwsManagedPolicyName("service-role/AWSElasticBeanstalkRoleECS"),
);Sources
Pending editorial review. No editorial sources are listed yet.