无法将图像添加到AWS Autoscale启动配置

wai*_*ani 3 amazon-ec2 amazon-web-services ec2-ami

我正在使用以下命令来设置AWS启动配置:

as-create-launch-config test1autoscale --image-id ami-xxxx --instance-type m1.small
Run Code Online (Sandbox Code Playgroud)

其中ami-xxxx是我通过Web控制台从我的实例获得的图像ID.我收到以下错误:

Malformed input-AMI ami-xxxx is invalid: The AMI ID 'ami-xxxx' does not exist
Run Code Online (Sandbox Code Playgroud)

我有三重检查图像ID匹配实例图像ID.我的可用区位于东南方向1a.如果它不接受我希望添加到自动缩放组的实例的图像,我不清楚要求的图像是什么

dom*_*dom 11

尝试将区域端点(因为默认情况下它正在查看us-east-1 enpoint)添加到config命令,然后它应该工作:

as-create-launch-config test1autoscale --region ap-southeast-1 --image-id ami-xxxx --instance-type m1.small
Run Code Online (Sandbox Code Playgroud)

另请看一下:区域和端点 - Amazon Web Services词汇表