GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Software-Engineering/Udemy - Terraform Course PT-BR at main · sobitd/Software-Engineering

Expand file tree

/

Udemy - Terraform Course PT-BR

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

Udemy - Terraform Course PT-BR

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
aws-azure-remote-state
aws-azure-remote-state
 
 
aws-azure-vms
aws-azure-vms
 
 
aws-bucket
aws-bucket
 
 
aws-vm-com-provisioners
aws-vm-com-provisioners
 
 
aws-vm-com-vpc-remote-state
aws-vm-com-vpc-remote-state
 
 
aws-vm-modulos-locais
aws-vm-modulos-locais
 
 
aws-vm-user-data
aws-vm-user-data
 
 
aws-vpc
aws-vpc
 
 
azure-storage-account
azure-storage-account
 
 
azure-vm-com-provisioners
azure-vm-com-provisioners
 
 
azure-vm-com-vnet-remote-state
azure-vm-com-vnet-remote-state
 
 
azure-vm-custom-data
azure-vm-custom-data
 
 
azure-vm-modulos-remotos
azure-vm-modulos-remotos
 
 
azure-vnet
azure-vnet
 
 
bloco-terraform
bloco-terraform
 
 
comandos-terraform
comandos-terraform
 
 
conditional-expressions-azure-storage-account
conditional-expressions-azure-storage-account
 
 
count-aws-vpc
count-aws-vpc
 
 
data-source-azure-storage-account
data-source-azure-storage-account
 
 
depends-on-modulo-remoto
depends-on-modulo-remoto
 
 
dynamic-blocks-aws-vpc
dynamic-blocks-aws-vpc
 
 
for-each-azure-storage-account
for-each-azure-storage-account
 
 
lifecycle-aws-vm
lifecycle-aws-vm
 
 
local-state
local-state
 
 
pipeline-gitlab-ci-v2
pipeline-gitlab-ci-v2
 
 
provider-aws-vpc
provider-aws-vpc
 
 
splat-expressions-aws-vpc
splat-expressions-aws-vpc
 
 
terraform-console
terraform-console
 
 
terraform-data-azure-vm
terraform-data-azure-vm
 
 
terraform-get
terraform-get
 
 
time-sleep-aws-vm
time-sleep-aws-vm
 
 
workspaces-aws-vpc
workspaces-aws-vpc
 
 
.DS_Store
.DS_Store
 
 
README.md
README.md
 
 

README.md

Outline

Terraform Udemy Course

  • https://gitlab.com/terraform-basico-ao-avancado
  • https://www.udemy.com/course/terraform-do-basico-ao-avancado

Create AWS KEY

ssh-keygen -f aws-key

Connect to VM

ssh -i aws-key [email protected]

Commands

terraform providers
terraform init
terraform init -reconfigure
terraform init -migrate-state
  • Mesma coisa que o migrate-state, mas não pede confirmação
terraform init -force-copy
  • Arquivos que o terraform mudaria
terraform check
  • Alterações que o terraform fez no seu código
terraform diff
  • Formatação automatica
terraform fmt
terraform -recursive
  • Formatação é valida? só funciona depois do terraform init
terraform validate
  • Ver o plano que o terraform pretende fazer
terraform plan
  • Aplicar terraform no provider
terraform apply
terraform apply --destroy
terraform apply -auto-approve
terraform plan -out plan.out
terraform apply plan.out
terraform apply -out plan.out -destroy
terraform destroy
export TF_VAR_container_name=container-envvar
terraform output
terraform output -raw {storage_account_id}
terraform show plan.out
terraform state -help
terraform state mv aws_s3_bucket.bucket_1 aws_s3_bucket.bucket_um
terraform state pull
terraform state pull > state.tfstate
terraform state push --force state.tfstate
terraform state replace-provider registry.terraform.io/hashicorp/aws-v2 registry.terraform.io/hashicorp/aws
terraform state show aws_s3_bucket.bucket_1
terraform state rm aws_s3_bucket.bucket_1
terraform import aws_s3_bucket.bucket_um alexgalhardo-terraform-commands-1
terraform refresh
terraform force-unlock ID_STATE_LOCK
terraform console
terraform workspace --help
terraform workspace list
terraform workspace new dev
terraform workspace show
terraform workspace select prod
terraform workspace delete dev
You are visitor 01402605 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.