Problem statement--You have been asked to build an infrastructure safely and efficiently. The company Requirements:
- Use AWS cloud Provider and the software to be installed is Apache2
- Use Ubuntu AMI
The company wants the Architecture to have the following services:
- Create a template with a VPC, 2 subnets and 1 instance in each subnet
- Attach Security groups, internet gateway and network interface to the instance
Solution
Install terraform
sudo snap install terraform
Create on IAM user and attach permission to create these resources
#terraform plan
#terraform apply
Step-
Verify
Thank you