使用 ecs-cli 在 AWS 中创建新集群时出错

使用 ecs-cli 在 AWS 中创建新集群时出错

我正在ecs-cli up --keypair aws-keypair-brickpile --capability-iam --size 1 --instance-type t3.medium --spot-price 0.02使用默认区域运行此命令eu-north-1,但它因此错误而退出。我不知道问题出在哪里。

INFO[0000] Using recommended Amazon Linux 2 AMI with ECS Agent 1.24.0 and Docker version 18.06.1-ce
INFO[0000] Created cluster                               cluster=brickpile region=eu-north-1
INFO[0001] Waiting for your cluster resources to be created...
INFO[0001] Cloudformation stack status                   stackStatus=CREATE_IN_PROGRESS
INFO[0061] Cloudformation stack status                   stackStatus=CREATE_IN_PROGRESS
INFO[0122] Cloudformation stack status                   stackStatus=CREATE_IN_PROGRESS
ERRO[0183] Failure event                                 reason="AMI cannot be described (Service: AmazonAutoScaling; Status Code: 400; Error Code: ValidationError; Request ID: 8aa9e331-199d-11e9-903f-e74f15be8d34)" resourceType="AWS::AutoScaling::LaunchConfiguration"
FATA[0183] Error executing 'up': Cloudformation failure waiting for 'CREATE_COMPLETE'. State is 'ROLLBACK_IN_PROGRESS'

答案1

AMI 基本上不存在。请检查您是否拥有权限或 AMI 是否位于其应在的位置。

相关内容