AWS NAT
Task Description
Performing the following steps:
2. In that VPC we have to create 2 subnets:
1. public subnet [ Accessible for Public
World! ]
2. 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 sothat our client can connect to our
wordpress site. Also attach the key to instance for further login into it.
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. Also attach the key with the same.
Note: Wordpress instance has to be part of public subnet so that our client can connect our site.
mysql instance has to be part of private subnet so that outside
world can't connect to it.
Don't forgot to add auto ip assign and auto dns name assignment option
to be enabled.
Try each step first manually and write Terraform code for the same to
have a proper understanding of workflow of task.
Creation of IAM user -
Creating VPC -
Applying Terraform -


















Comments
Post a Comment