내용으로 건너뛰기

Cannot create elastic beanstalk environment correctly.

0

I have read the document: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/iam-instanceprofile.html

And I have created the role aws-elasticbeanstalk-ec2-role and add the policies: AWSElasticBeanstalkWebTier, AWSElasticBeanstalkWorkerTier, AWSElasticBeanstalkMulticontainerDocker. But the error still occurs. See the screenshots. Enter image description here Enter image description here Enter image description here Enter image description here

Basically, I am following the docker tutorial steps here: https://docker-curriculum.com/#docker-on-aws

질문됨 3년 전635회 조회

2개 답변
0

For service role you need this as trusted entity (can be without conditions):

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": {
                "Service": "elasticbeanstalk.amazonaws.com"
            },
            "Action": "sts:AssumeRole",
            "Condition": {
                "StringEquals": {
                    "sts:ExternalId": "elasticbeanstalk"
                }
            }
        }
    ]
}

And add this managed policy as a policy: AWSElasticBeanstalkManagedUpdatesCustomerRolePolicy

For EC2 instance role you need this as trusted entity, also add needed permissions.

{
    "Version": "2008-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": {
                "Service": "ec2.amazonaws.com"
            },
            "Action": "sts:AssumeRole"
        }
    ]
}

답변함 3년 전

AWS
전문가

검토됨 3년 전

0

okay... I finally figure it out. I didn't select an EC2 instance profile. After I added that, there is no error.

답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠