CLI创建安全组,得到InvalidVpcID.NotFound The vpc ID does not exist
Create security group at CLI, getting InvalidVpcID.NotFound The vpc ID does not exist
正在尝试发布:
$ aws ec2 create-security-group --group-name Grp1 --description Grp1 --vpc-id vpc-0e6f748e8c01534bc
但是我明白了
An error occurred (InvalidVpcID.NotFound) when calling the CreateSecurityGroup operation:
The vpc ID 'vpc-0e6f748e8c01534bc' does not exist
该 vpc 确实存在,但未被识别。
它在不同的区域。
我无法在命令中指定区域。
我该如何解决这个问题?
当你在aws cli上执行一些命令时,你可以提交区域选项如下。
aws cli <some code> --region <region>
AWS 中列出了 cli 选项 documentation。
正在尝试发布:
$ aws ec2 create-security-group --group-name Grp1 --description Grp1 --vpc-id vpc-0e6f748e8c01534bc
但是我明白了
An error occurred (InvalidVpcID.NotFound) when calling the CreateSecurityGroup operation:
The vpc ID 'vpc-0e6f748e8c01534bc' does not exist
该 vpc 确实存在,但未被识别。
它在不同的区域。
我无法在命令中指定区域。
我该如何解决这个问题?
当你在aws cli上执行一些命令时,你可以提交区域选项如下。
aws cli <some code> --region <region>
AWS 中列出了 cli 选项 documentation。