AWS ElasticBeanstalk应用程序loadbalancer服务角色

时间:2017-05-29 15:02:31

标签: amazon-web-services elastic-beanstalk

我正在尝试使用带有以下cli命令的应用程序loadbalancer创建一个新的ElasticBeanstalk环境: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.

即使使用管理员密钥,也会出现同样的错误。

我已经添加了角色aws-elasticbeanstalk-service-role和权限AWSElasticBeanstalkService(以及AWSElasticBeanstalkFullAccess),它仍然提供相同的错误。

当我使用经典的负载均衡器时,一切正常。

1 个答案:

答案 0 :(得分:4)

为了将来参考,您需要将服务角色添加到命令中,如lists in Phoenix.HTML and templates may only contain integers representing bytes, binaries or other lists, got invalid entry: %Skeleton.News.Evento{__meta__: #Ecto.Schema.Metadata<:loaded, "news_eventos">, date: "DEZ 2011", id: 69, imgPaths: ["images/fabasa/eventos/one/1.jpg", "images/fabasa/eventos/one/2.jpg", "images/fabasa/eventos/one/3.jpg", "images/fabasa/eventos/one/10.jpg"], inserted_at: ~N[2017-06-30 12:38:15.452214],...

在您查看http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb3-create.html

时,请查看所有可用选项