我正在将我的应用程序迁移到云形成堆栈。当堆栈创建开始创建 elasticbeanstalk 时,环境创建会冻结在:
2:08pm
Added instance [i-<myinstance>] to your environment.
2:07pm
Waiting for EC2 instances to launch. This may take a few minutes.
2:06pm
Created security group named:
sg-<mygroup>
2:06pm
Created EIP: <myip>
2:06pm
Environment health has transitioned to Pending. Initialization in progress (running for 11 seconds). There are no instances.
2:06pm
Using elasticbeanstalk-eu-west-<mybucket> as Amazon S3 storage bucket for environment data.
2:06pm
createEnvironment is starting.
这是我的堆栈模板: https://pastebin.com/awAmAg7w
这是一个基于 aws 示例弹性 beantalk 模板的简化版模板,但也无法启动 https://pastebin.com/0Xs2pL0f
答案1
AssociatePublicIpAddress
必须设置为true