Terraform contd…
- Lets use terraform aws-vpc module to create 6 subnets
- web1
- web2
- app1
- app2
- db1
- db2
- web1 and web2 are public subnets and remaining private subnets
- We have used to the terraform aws module Refer Here
- Refer Here for the changes.
- Now we need to create a security group which opens 3306 port (mysql works on 3306) to all the vpc range (to all subnets). Refer Here
- Refer Here for the changes done to add db security group
- Create a db subnet group Refer Here
- Refer Here for creating db
- Refer Here for the changes