AWS Networking using CLI
- AWS CLI Should be installed Refer Here
- Refer Here for IAM User Creation
- From CLI to connect to aws we need
- Access Key
- Secret Key
- In AWS names are special tag. The tag will have Name as key and name entered as value
- CLI Command searching tips

- Lets create a vpc using cli

- Lets delete the vpc created

- Now lets create the ntier network
- VPC with Cidr range of ‘10.100.0.0/16’ and tag with Name as ntier
- 4 subnets
- web = 10.100.0.0/24
- app = 10.100.1.0/24
- db = 10.100.2.0/24
- mgmt = 10.100.3.0/24
- Lets write cli in a shell script format. Refer Here for the script

- Lets get vpc-id and store it
- Lets create subnets Refer Here
- Exercise:
- Write the cli to create a public and private route table
- associate public rt with web & mgmt subnets
- associate private rt with db and app subnets
