Terraform is used to provision and manage IT Infrastructure
$ sh hardening.sh reference: https://github.com/krishnamaram2/WebApp
step 0: create the below objects in AWS
create s3 bucket
create file under above s3 bucket
create DynamoDB table
step 1: clone repo
$git clone https://github.com/krishnamaram2/Infrastructure_Manager.git
Step 2: move to directory
cd Infrastructure_Manager/src
Step 3: enter access key and secret key in the below files
$vi backend.tf
terraform{
backend "s3"{
access_key = ""
secret_key = ""
region = "us-east-1"
bucket = ""
key = ""
dynamodb_table = ""
}
}
$vi config.json
{
"myregion" : "us-east-1",
"myaccesskey" : "",
"mysecretkey" : "",
"myamiid" : ""
}
Step 4:
$terraform init .
$terraform validate -var-file=config.json .
$terraform apply -var-file=config.json .