[トップページ] [FAQ 一覧]

対象:RunInstances

A client error (InvalidParameterCombination) occurred when calling the RunInstances operation: The parameter groupName cannot be used with the parameter subnet





エラーの内容


AWS の API である run-instances で以下のエラーが発生する場合があります。


A client error (InvalidParameterCombination) occurred when calling the RunInstances operation: The parameter groupName cannot be used with the parameter subnet




対処


デフォルトでないVPCの場合はsecurity-groupではなくsecurity-group-idsでセキュリティグループを指定します。

https://docs.aws.amazon.com/powershell/latest/reference/


-SecurityGroup <String[]>

The names of one or more security groups. Note that for a nondefault VPC, you must specify the security group by ID using the SecurityGroupIds parameter instead. For EC2-Classic or a default VPC, you can specify the security group by name or ID.Default: Amazon EC2 uses the default security group

【超重要】本ページは情報が古くなっている可能性があります。参考程度にしてください。








[ 一覧に戻る]


【注意事項】本ページの内容は個人的に調査した結果がであり内容が正しいことは保証されません。
またAWSサービスは常に改良、アップデートされており本ページの内容が古く誤った内容になる可能性もあります。変更になっても本ページが正しく更新されるとは限りません。
あくまでも参考程度でご覧ください。内容により発生したいかなる時間的損害、金銭的損害、その他の損害に関しても何人も保証しません。