Skip to content

Instantly share code, notes, and snippets.

@pburkholder
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save pburkholder/5fed34269954b90392e2 to your computer and use it in GitHub Desktop.

Select an option

Save pburkholder/5fed34269954b90392e2 to your computer and use it in GitHub Desktop.
How to use tag filter with aws ecs
aws ec2 describe-subnets --filter "Name=tag:Name,Values=isa-w2a"
aws ec2 describe-vpcs --filter "Name=tag:Name,Values=chef_ha_vpc"
aws ec2 describe-internet-gateways --filter "Name=tag:Name,Values=chef_ha_vpc"
aws ec2 detach-internet-gateway --internet-gateway-id igw-bb7daade --vpc-id vpc-4dea4228
aws ec2 delete-internet-gateway --internet-gateway-id igw-bb7daade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment