aws ec2 cli filter by tag name and value

  1. aws ec2 describe-instances --filter Name=tag:Name,Values=ADS-prod-ads
The horrible syntax of "and" filters:
  1.  aws ec2 describe-instances 
    1. --filter 
      1. '{"Name":"tag:backup","Values":["yes"]}' 
      2. '{"Name":"instance-state-name","Values":["running"]}' 
    2. non-breakout view below
aws ec2 describe-instances --filter '{"Name":"tag:backup","Values":["yes"]}' '{"Name":"instance-state-name","Values":["running"]}'


  1. Thanks for providing this informative information you may also refer.


Post a Comment

Popular posts from this blog

Openvpn and unbound combined break dig command

Stress Linux system: stress-ng

Google Nexus 4: permanent back panel glass repair for less than a penny