Activity -2 : Creating an ntier application in AWS
-
Overview
-
Manual steps
- Create a vpc
- cidr
- region
- Create six subnets
- zone
- cidr
- Create an internet gateway and attach to vpc
- modify default route table to add route to internet gateway
- route:
- cidr: 0.0.0.0/0
- forward to internet gateway
- route:
- add 3 security groups for web, app, db servers
- Now import a key pair
- create an ec2 instance with subnet selected, AMI (os image), key pair with public ip enabled (user data-> script to install during creation)
- AMI id
- Create a vpc
- Refer Here for the basic template
- Exercise: Create till security groups in terraform
