Skip to content

Anbu42/terraform-lessons

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Terraform 0.12+ and 0.13+ Lessons by Denis Astahov

Set AWS Credentials in Windows PowerShell:

$env:AWS_ACCESS_KEY_ID="xxxxxxxxxxxxxxxxx"
$env:AWS_SECRET_ACCESS_KEY="yyyyyyyyyyyyyyyyyyyyyyyyyyyy"
$env:AWS_DEFAULT_REGION="zzzzzzzzz"

Set AWS Credentials in Linux Shell:

export AWS_ACCESS_KEY_ID="xxxxxxxxxxxxxxxxx"
export AWS_SECRET_ACCESS_KEY="yyyyyyyyyyyyyyyyyyyyyyyyyyyy"
export AWS_DEFAULT_REGION="zzzzzzzzz"

Terraform Commands

terraform init
terraform plan
terraform apply
terraform destroy

terraform show
terraform output
terraform console
terraform import
terraform taint

Terraform State Commands

terraform state show
terraform state list
terraform state pull
terraform state rm
terraform state mv
terraform state push

for x in $(terraform state list | grep xyz); do terraform state mv -state-out=”terraform.tfstate” $x $x; done

Terraform Workspace Commands

terraform workspace show
terraform workspace list
terraform workspace new
terraform workspace select
terraform workspace delete

${terraform.workspace}

About

Source Code for Course "Terraform From Beginner to Professional"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 96.9%
  • Shell 3.1%