I am trying to understand the aws ec2 cli call. I want to describe all the VPCs, then filer, to a user tag (vpcname = myvpc, however after trying several combinations, I continue to get conflicting errors regarding the format and use of -filters. Using as a link [ http://docs.aws.amazon.com /cli/latest/reference/ec2/describe-vpcs.html†[1]
aws --profile myProfile - eu-west-1 ec2 region describe-vpcs - vpcname, myvpc filters
however this returns
Error parsing parameter '--filters': should be: Key value pairs, where values are separated by commas, and multiple pairs are separated by spaces.
--filters Name=string1,Values=string1,string2 Name=string1,Values=string1,string2
so try
aws --profile myProfile - region eu-west-1 ec2 describe-vpcs - filters Name = vpcname, values = myvpc
and he returns
A client error (InvalidParameterValue) occurred when calling the DescribeVpcs operation: The filter 'vpcname' is invalid
so try a few other combinations
aws
Error parsing parameter '
Any tips on how I format this query?