在从我的ami创建ec2实例时,我遇到了错误:
aws ec2 run-instances --image-id ami-3e21ed44 --count 1 --instance-type t2.medium --key-name sssoft --security-groups launch-wizard-4此示例不与这里中的相同吗?
它给出了这个错误:
An error occurred (InvalidParameterValue) when calling the RunInstances operation: Value () for parameter groupId is invalid. The value cannot be empty怎么啦?
发布于 2017-11-11 02:34:56
愚蠢的错误。在命令行中,默认区域与AMI的区域不同。
发布于 2017-10-07 00:12:46
此错误意味着您的帐户中不存在安全组launch-wizard-4。
如果您的帐户中确实存在该安全组,请检查您正在使用的AWS CLI配置文件。默认情况下,它使用default。但是,如果需要使用不同的配置文件,只需将--profile my-profile-name添加到命令中即可。
有关概要文件的更多信息:AWS CLI名为Profiles
https://stackoverflow.com/questions/46604759
复制相似问题