Create IAM instance role

1.Go to AWS Management Console.

  • Find IAM.
  • Select IAM. Search IAM
  1. In IAM interface, select Roles.

  2. In Role interface, search the role name aws-elasticbeanstalk-ec2-role.

  3. If this role is existing, you can skip this step and go to 3. Create Develop environment in Elastic Beanstalk.

Check and make sure that this role was created with 3 policies AWSElasticBeanstalkWebTier, AWSElasticBeanstalkWorkerTier and AWSElasticBeanstalkMulticontainerDocker.

  1. If the role is not existing, you can create new role by clicking Create role. Create Role 1

  2. At Trusted entity type interface:

    • Choose AWS service.
    • At Use case, search and choose EC2 as service.
    • Choose EC2 as use case.
    • Then click Next. Create Role 2
  3. Then, search and add policies AWSElasticBeanstalkWebTier, AWSElasticBeanstalkWorkerTier and AWSElasticBeanstalkMulticontainerDocker. Create Role 3

  4. Input the name of role aws-elasticbeanstalk-ec2-role. Create Role 4

  5. Scroll down and check 3 policies AWSElasticBeanstalkWebTier, AWSElasticBeanstalkWorkerTier and AWSElasticBeanstalkMulticontainerDocker were added. Then, click Create role to create the role. Create Role 5