这是关于在 describe-vpcs 中按标签过滤的正确语法是什么?.
使用提供的答案并参考http://docs.aws.amazon.com/cli/latest/reference/ec2/describe-security-groups.html
--filters (list)
One or more filters.
......
vpc-id - The ID of the VPC specified when the security group was created.
我已经构建了 cli 请求
aws --profile myProfile --region eu-west-1 ec2 describe-security-groups --group-name MyVpcSecGroup --filters Name=tag:vpc-id,Values=vpc-9xxxxxxx
但是我收到一个错误
默认 VPC 'vpc-bxxxxxx' 中不存在安全组 'MyVpcSecGroup'
那么如何格式化语法以使用 --filters 列表(例如 vpc-id)在非默认 VPC 中搜索安全组?
谢谢艺术