Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
16 views10 pages

Document 1

The document outlines a project for designing a cloud-based web application using Terraform, including steps for setting up AWS CLI, creating necessary files, and deploying core infrastructure. It details commands for initializing Terraform, reviewing execution plans, and applying infrastructure, resulting in the creation of a VPC, EC2 instance, S3 bucket, and RDS. The document also emphasizes the importance of terminating resources to avoid AWS charges and provides a command for deletion.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views10 pages

Document 1

The document outlines a project for designing a cloud-based web application using Terraform, including steps for setting up AWS CLI, creating necessary files, and deploying core infrastructure. It details commands for initializing Terraform, reviewing execution plans, and applying infrastructure, resulting in the creation of a VPC, EC2 instance, S3 bucket, and RDS. The document also emphasizes the importance of terminating resources to avoid AWS charges and provides a command for deletion.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

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

You might also like