X Tutup
Skip to content

Derick-Roshan/terraform-modules

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform_modules

How to configure your AWS account with Visual studio code.

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

How to clone the terraform modules.

git clone https://github.com/cloudinstitution/Terraform_modules.git

cd Terraform_modules/modules

image

To run a IAM user code.

TO change directory to "iam" folder

cd iam

To initialize your reposotory

terraform init

To format the code

terraform fmt

To vdalidate the syntax

terraform validate

To check the IAM plan

terraform plan
To IAM apply terraform apply --auto-approve =>

terraform destroy --auto-approve => To destroy the resources created

To run a EC2 code.

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

To run a VPC code.

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

To run a s3 code.

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

To run a alb code.

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

To run the module , follow the below steps.

image

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HCL 85.7%
  • Shell 14.3%
X Tutup