amazon-web-services – 使用Amazon ECS CLI创建集群

我正在关注ECS CLI tutorial.

当我运行第一个命令时:
ecs-cli up –keypair xxxxx.pem –capability-iam –size 2 –instance-type t2.medium

我收到以下错误:

ERRO[0040] Failure event reason=”Parameter validation failed: parameter value transin-ravi-west-1.pem for parameter name KeyName does not exist. Rollback requested by user.” resourceType=”AWS::CloudFormation::Stack”

ERRO[0040] Error executing ‘up’: Cloudformation failure waiting for ‘CREATE_COMPLETE’. State is ‘ROLLBACK_COMPLETE’

我确保区域设置正确.它仍然无法正常工作. (按照建议here)

最佳答案 在ecs-cli命令中,您是否尝试在–keypair参数上传递密钥名称而不是.pem文件的引用?

点赞