本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
AWSElasticBeanstalkRoleCore
描述: AWSElasticBeanstalkRoleCore (Elastic Beanstalk 作業角色) 允許 Web 服務環境的核心作業。
AWSElasticBeanstalkRoleCore
是AWS 受管理的策略。
使用此政策
您可以附加AWSElasticBeanstalkRoleCore
至您的使用者、群組和角色。
政策詳情
-
類型:服務角色策略
-
創建時間:2020 年 6 月 5 日, 世界標準時間 21:48
-
編輯時間:世界標準時間 2024 年 4 月 30 日凌時 01 分
-
ARN:
arn:aws:iam::aws:policy/service-role/AWSElasticBeanstalkRoleCore
政策版本
策略版本:v3(預設值)
原則的預設版本是定義原則權限的版本。當具有策略的使用者或角色發出要求以存取 AWS 資源時,請 AWS 檢查原則的預設版本,以決定是否允許該要求。
政策文件
{
"Version" : "2012-10-17",
"Statement" : [
{
"Sid" : "TerminateInstances",
"Effect" : "Allow",
"Action" : [
"ec2:TerminateInstances"
],
"Resource" : "arn:aws:ec2:*:*:instance/*",
"Condition" : {
"StringLike" : {
"ec2:ResourceTag/aws:cloudformation:stack-id" : "arn:aws:cloudformation:*:*:stack/awseb-e-*"
}
}
},
{
"Sid" : "EC2",
"Effect" : "Allow",
"Action" : [
"ec2:ReleaseAddress",
"ec2:AllocateAddress",
"ec2:DisassociateAddress",
"ec2:AssociateAddress",
"ec2:CreateTags",
"ec2:DeleteTags",
"ec2:CreateSecurityGroup",
"ec2:DeleteSecurityGroup",
"ec2:AuthorizeSecurityGroup*",
"ec2:RevokeSecurityGroup*",
"ec2:CreateLaunchTemplate*",
"ec2:DeleteLaunchTemplate*"
],
"Resource" : "*"
},
{
"Sid" : "LTRunInstances",
"Effect" : "Allow",
"Action" : "ec2:RunInstances",
"Resource" : "*",
"Condition" : {
"ArnLike" : {
"ec2:LaunchTemplate" : "arn:aws:ec2:*:*:launch-template/*"
}
}
},
{
"Sid" : "ASG",
"Effect" : "Allow",
"Action" : [
"autoscaling:AttachInstances",
"autoscaling:*LoadBalancer*",
"autoscaling:*AutoScalingGroup",
"autoscaling:*LaunchConfiguration",
"autoscaling:DeleteScheduledAction",
"autoscaling:DetachInstances",
"autoscaling:PutNotificationConfiguration",
"autoscaling:PutScalingPolicy",
"autoscaling:PutScheduledUpdateGroupAction",
"autoscaling:ResumeProcesses",
"autoscaling:SuspendProcesses",
"autoscaling:*Tags"
],
"Resource" : [
"arn:aws:autoscaling:*:*:launchConfiguration:*:launchConfigurationName/awseb-e-*",
"arn:aws:autoscaling:*:*:autoScalingGroup:*:autoScalingGroupName/awseb-e-*"
]
},
{
"Sid" : "ASGPolicy",
"Effect" : "Allow",
"Action" : [
"autoscaling:DeletePolicy"
],
"Resource" : [
"*"
]
},
{
"Sid" : "EBSLR",
"Effect" : "Allow",
"Action" : [
"iam:CreateServiceLinkedRole"
],
"Resource" : [
"arn:aws:iam::*:role/aws-service-role/elasticbeanstalk.amazonaws.com/AWSServiceRoleForElasticBeanstalk*"
],
"Condition" : {
"StringLike" : {
"iam:AWSServiceName" : "elasticbeanstalk.amazonaws.com"
}
}
},
{
"Sid" : "S3Obj",
"Effect" : "Allow",
"Action" : [
"s3:Delete*",
"s3:Get*",
"s3:Put*"
],
"Resource" : [
"arn:aws:s3:::elasticbeanstalk-*/*",
"arn:aws:s3:::elasticbeanstalk-env-resources-*/*"
]
},
{
"Sid" : "S3Bucket",
"Effect" : "Allow",
"Action" : [
"s3:GetBucket*",
"s3:ListBucket",
"s3:PutBucketPolicy"
],
"Resource" : "arn:aws:s3:::elasticbeanstalk-*"
},
{
"Sid" : "CFN",
"Effect" : "Allow",
"Action" : [
"cloudformation:CreateStack",
"cloudformation:DeleteStack",
"cloudformation:GetTemplate",
"cloudformation:ListStackResources",
"cloudformation:UpdateStack",
"cloudformation:ContinueUpdateRollback",
"cloudformation:CancelUpdateStack",
"cloudformation:TagResource",
"cloudformation:UntagResource"
],
"Resource" : "arn:aws:cloudformation:*:*:stack/awseb-e-*"
},
{
"Sid" : "CloudWatch",
"Effect" : "Allow",
"Action" : [
"cloudwatch:PutMetricAlarm",
"cloudwatch:DeleteAlarms"
],
"Resource" : "arn:aws:cloudwatch:*:*:alarm:awseb-*"
},
{
"Sid" : "ELB",
"Effect" : "Allow",
"Action" : [
"elasticloadbalancing:Create*",
"elasticloadbalancing:Delete*",
"elasticloadbalancing:Modify*",
"elasticloadbalancing:RegisterTargets",
"elasticloadbalancing:DeRegisterTargets",
"elasticloadbalancing:DeregisterInstancesFromLoadBalancer",
"elasticloadbalancing:RegisterInstancesWithLoadBalancer",
"elasticloadbalancing:*Tags",
"elasticloadbalancing:ConfigureHealthCheck",
"elasticloadbalancing:SetRulePriorities",
"elasticloadbalancing:SetLoadBalancerPoliciesOfListener"
],
"Resource" : [
"arn:aws:elasticloadbalancing:*:*:targetgroup/awseb-*",
"arn:aws:elasticloadbalancing:*:*:loadbalancer/awseb-*",
"arn:aws:elasticloadbalancing:*:*:loadbalancer/app/awseb-*/*",
"arn:aws:elasticloadbalancing:*:*:loadbalancer/net/awseb-*/*",
"arn:aws:elasticloadbalancing:*:*:listener/awseb-*",
"arn:aws:elasticloadbalancing:*:*:listener/app/awseb-*",
"arn:aws:elasticloadbalancing:*:*:listener/net/awseb-*",
"arn:aws:elasticloadbalancing:*:*:listener-rule/app/awseb-*/*/*/*"
]
},
{
"Sid" : "ListAPIs",
"Effect" : "Allow",
"Action" : [
"autoscaling:Describe*",
"cloudformation:Describe*",
"logs:Describe*",
"ec2:Describe*",
"ecs:Describe*",
"ecs:List*",
"elasticloadbalancing:Describe*",
"rds:Describe*",
"sns:List*",
"iam:List*",
"acm:Describe*",
"acm:List*"
],
"Resource" : "*"
},
{
"Sid" : "AllowPassRole",
"Effect" : "Allow",
"Action" : "iam:PassRole",
"Resource" : "arn:aws:iam::*:role/aws-elasticbeanstalk-*",
"Condition" : {
"StringEquals" : {
"iam:PassedToService" : [
"elasticbeanstalk.amazonaws.com",
"ec2.amazonaws.com",
"autoscaling.amazonaws.com",
"elasticloadbalancing.amazonaws.com",
"ecs.amazonaws.com",
"cloudformation.amazonaws.com"
]
}
}
}
]
}