AWS CLI Contd
Querying JSON
- Json can be viewed in hierarchical fashion as tree
- Find all the vpc ids in your default region
- Find the vpc id of default vpc in default region
- Find the vpc ids of non-default vpcs in default region
- Find all the subnet ids of the default-vpc in default region
-
Find the az’s of all the subnets in default vpc
-
Exercise using cli:
- Create a vpc with 4 subnets
- delete the first subnet
- create a new subnet
- delete all the subnets
- delete vpc