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

已提問 1 年前檢視次數 246 次
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"
        }
    ]
}
profile picture
已回答 1 年前
profile pictureAWS
專家
iBehr
已審閱 1 年前
0

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

已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南