Posts

Create a vpc Infrastructure and Host a wordpress Application with Mysql & Launch VPC using NAT Gateway for hosting WordPress on AWS

Image
  Task 3 -  Create a VPC Infrastructure and Host a wordpress Application with Mysql by- Shivangi Saxena TASK OBJECTIVES :- 1-Write a Infrastructure as code using terraform, which automatically create a VPC. 2- In that VPC we have to create two subnets: — a) Public subnet b) Private subnet 3- Create a public facing internet gateway for connect our VPC/Network to the internet world and attach this gateway to our vpc. 4- Create a routing table for internet gateway so that insatnce can connect to outside world , update and associate it with public subnet. 5- Launch a EC2 instance which has wordpress setup already having the security group allowing port 80 so that our client can connect to our worddpress site. 6- Launch a EC2 instance which has Mysql setup already with security group allowing port 3306 in private subnet so that our wordpress vm can connect with the same. TASK IMPLEMENTATION:- STEP 1: Specify the Provider Provider is used to specify the cloud provider that we are going to u