AWS VPC(VIRTUAL PRIVATE CLOUD)
We have to create a web portal for our company with all the security as much as possible.
So, we use Wordpress software with dedicated database server.Database should not be accessible from the outside world for security purposes.We only need to public the WordPress to clients.So here are the steps for proper understanding!
Steps:
- Write a Infrastructure as code using terraform, which automatically create a VPC.
2) In that VPC we have to create 2 subnets:
a) public subnet [ Accessible for Public World! ]
b) private subnet [ Restricted for Public World! ]
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 instance can connect to outside world, update and associate it with public subnet.
5) Launch an ec2 instance which has Wordpress setup already having the security group allowing port 80 so that our client can connect to our wordpress site.
6) Launch an 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.
CODE LINK-https://github.com/shrey285001/AWS-VPC.git
NOTE-THIS TASK IS DONE UNDER THE GUIDANCE OF VIMAL DAGA SIR. VIAML DAGA SIR- https://lnkd.in/dJWN8ig