Cloud-based Web app using Terraform
Name: K.ManiKumar
Reg no. : 12209198
Section: 9S018
PROJECT:
• Design a Cloud-Based Application (e.g., Web App with DB)
• Plan Compute, Storage, and Networking
• Start Implementation with IaC
• Hands-On: Deploy Core Infrastructure
Submitted to : RamyaSri
Step 1:
Set up the AWS CLI (Command Line Interface) with your AWS credentials.
Ex: aws configure
Step 2:
Create a directory in our system using mkdir and then change to that directory.
Step 3:
Create files in the same directory(main.tf, outputs.tf, variables.tf)
1.main.tf
2.outputs.tf
3.variables.tf
Step 4: After Creating above files, we have deploy
Initialize terraform:
Cmd : terraform init
Review Execution Plan:
Cmd: terraform plan
Apply the infrastructure
cmd: terraform apply
Apply Successful.
VPC Created
Internet gateway
Route table
Subnet created
EC2 Instance Created
S3 Bucket Created
RDS Created
Note: After Successful creation,do not forget to terminate all otherwise aws
charge.
For deletion use command: terraform destroy