我正在使用 Salt Cloud(aws 作为提供者),我的个人资料文件是:
ec2-profile:
provider: ec2-config
image: ami-7e2da54e
size: Micro Instance
我运行它进行测试:
sudo salt-cloud --profile=ec2-private test_minion -l debug
我有这个错误:
[DEBUG ] Using AWS endpoint: ec2.us-east-1.amazonaws.com
[DEBUG ] AWS Request: https://ec2.us-east-1.amazonaws.com/?Action=RunInstances&ImageId=ami-7e2da54e&InstanceType=Micro%20Instance&KeyName=salt_cloud_key&MaxCount=1&MinCount=1&Version=2014-10-01
[INFO ] Starting new HTTPS connection (1): ec2.us-east-1.amazonaws.com
[DEBUG ] Setting read timeout to None
[DEBUG ] "GET /?Action=RunInstances&ImageId=ami-7e2da54e&InstanceType=Micro%20Instance&KeyName=salt_cloud_key&MaxCount=1&MinCount=1&Version=2014-10-01 HTTP/1.1" 400 None
[DEBUG ] AWS Response Status Code: 400
[ERROR ] AWS Response Status Code and Error: [400 400 Client Error: Bad Request] {'Errors': {'Error': {'Message': "The image id '[ami-7e2da54e]' does not exist", 'Code': 'InvalidAMIID.NotFound'}}, 'RequestID': '6b8f2fb5-b24e-4438-8e45-c6b01dc08519'}
[ERROR ] Error requesting instance: Errors
Error: There was a profile error: Failed to deploy VM
你有什么想法 ?
更新:
我更改了图像 AMI id。现在我有这个调试消息:
InvalidParameterValue
这是(根据 AWS 文档):
An invalid or out-of-range value was supplied for the input parameter.