在我的VPC内部发起的弹性beanstalk正在启动

我在我创build的VPC内部启动Elastic Beanstalk应用程序时出现问题。

我的VPC如下所示:

id: vpc-a1b name: vpc-green cidr: 10.0.0.0/16 route table: rtb-1ab acl: acl-123 

然后我有6个子网:

 vpc-green-public-us-east-2a (rt: vpc-green-rt-public) vpc-green-public-us-east-2b (rt: vpc-green-rt-public) vpc-green-public-us-east-2c (rt: vpc-green-rt-public) vpc-green-private-us-east-2a (each has its own rt) vpc-green-private-us-east-2b vpc-green-private-us-east-2c 

路线表:

 vpc-green-rt-public 10.0.0.0/16 local 0.0.0.0/0 igw-123 vpc-green-rt-private-us-east-2a 10.0.0.0/16 local 0.0.0.0/0 nat-001 

互联网网关:

 vpc-green-igw 

ACL:

 vpc-green-acl inbound: 100 ALL/All/All 0.0.0.0/0 ALLOW * All/All/All 0.0.0.0/0 DENY outbound: 100 ALL/All/All 0.0.0.0/0 ALLOW * All/All/All 0.0.0.0/0 DENY associated subnets: all 6 (public and private) 

安全组:

 vpc-green-default inbound: All/All/All sg-a123 (self) outbound: All/All/All 0.0.0.0/0 vpc-green-web inbound: tcp, 80, 0.0.0.0/0 tcp, 443, 0.0.0.0/0 icmp, All, 0.0.0.0/0 all, all, all, 0.0.0.0/0 outbound: UDP, 123, 0.0.0.0/0 all/all/all, 0.0.0.0/0 EB-Load-balancer inbound: tcp, 80, 0.0.0.0/0 outbound: tcp, 80, 0.0.0.0/0 EB-VPC-Security inbound: tcp, 80, source=EB-load-balander outbound: all, all, 0.0.0.0/0 

ElasticBeanstalk创build的实际ec2实例如下所示:

 t2.small security groups: vpc-green-web EB-VPC-Security subnet: one of my public subnets (vpc-green-public-us-east-2a) 

EB创build的负载均衡器如下所示:

 security groups: EB-load-balancer subnet: one of my public subnets (vpc-green-public-us-east-2a) 

我收到一个错误

 The EC2 instances failed to communicate with AWS Elastic Beanstalk, either because of configuration problems with the VPC or a failed EC2 instance. Check your VPC configuration and try launching the environment again. Stack named 'awseb-e-xxxxx-stack' aborted operation. Current state: 'CREATE_FAILED' Reason: The following resource(s) failed to create: [AWSEBInstanceLaunchWaitCondition]. 

这里有一个帮助页面: http : //docs.aws.amazon.com/elasticbeanstalk/latest/dg/events.common.connectivity.html

它表示:“ 这意味着Amazon EC2实例未与Elastic Beanstalk通信,因此它们已成功启动。

鉴于以上信息,究竟是什么问题?

我不知道如何解决这个问题,因为它对我来说很好。

如果我访问EB生成的url不起作用:

 xxxxx.us-east-2.elasticbeanstalk.com is currently unable to handle this request. 

所以问题最终是我的DNS主机名和我的VPC设置支持没有设置为True。

Aws支持今天的人们!