AWS ElasticBeanstalk Service Platform

I'm trying to create a new environment using ElasticBeanstalk loadbalancer application with the following command cli the: eb create my-home-page --elb-type application;

INFO: Service role is required for application load balancer type enabled environments. ERROR: Failed to launch environment.

Even when using the admin key, it gives the same error.

I already added the aws-elasticbeanstalk-service-role and AWSElasticBeanstalkService (and AWSElasticBeanstalkFullAccess) permissions and it still gives the same erro.

Everything works when I use a classic loadbalancer.

+4
source share
1 answer

For future use, you need to add the service role to the command, as shown below: eb create --service-role aws-elasticbeanstalk-service-role

http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb3-create.html

+4

Source: https://habr.com/ru/post/1678115/


All Articles