Command :
aws configure
AWS Access Key ID [****************]: your AWS account AWS Access
AWS Secret Access Key [****************]: your AWS account AWS Secret key
Default region name []: ap-south-1
Default output format [text]: text
git clone https://github.com/cloudinstitution/Terraform_modules.git
cd Terraform_modules/modules
cd iam
terraform init
terraform fmt
terraform validate
terraform plan
To IAM apply
terraform apply --auto-approve =>
terraform destroy --auto-approve => To destroy the resources created
cd ec2 => change directory to "ec2" folder.
terraform init => To initialize your reposotory
terraform fmt => To format the code
terraform vaidate => to vdalidate the syntax
terraform plan => To check the Ec2 plan
terraform apply --auto-approve => To Ec2 apply
terraform destroy --auto-approve => To destroy the resources created
cd vpc => change directory to "vpc" folder.
terraform init => To initialize your reposotory
terraform fmt => To format the code
terraform vaidate => to vdalidate the syntax
terraform plan => To check the vpc plan
terraform apply --auto-approve => To vpc apply
terraform destroy --auto-approve => To destroy the resources created
cd s3 => change directory to "s3" folder.
terraform init => To initialize your reposotory
terraform fmt => To format the code
terraform vaidate => to vdalidate the syntax
terraform plan => To check the s3 plan
terraform apply --auto-approve => To s3 apply
terraform destroy --auto-approve => To destroy the resources created
cd alb => change directory to "alb" folder.
terraform init => To initialize your reposotory
terraform fmt => To format the code
terraform vaidate => to vdalidate the syntax
terraform plan => To check the alb plan
terraform apply --auto-approve => To alb apply
terraform destroy --auto-approve => To destroy the resources created
Make sure that you are under "Terraform_modules" directory.
terraform init => To initialize your reposotory
terraform fmt => To format the code
terraform vaidate => to vdalidate the syntax
terraform plan => To check the module plan
terraform apply --auto-approve => To module apply
terraform destroy --auto-approve => To destroy the module resouces created