workflow

chevron-rightterraform inithashtag

Initialize Terraform

  • Downloads AWS provider.

  • Sets up .terraform directory.

  • Important: Run this whenever you add new providers or modules.

files after terraform init .terraform folder modules folder modules.json providers liscence.txt terraform-aws-prov-exe .terraform.lock.hcl

chevron-rightterraform validatehashtag

terraform validate

  • Ensures syntax is correct.

  • Catches typos, missing arguments, bad HCL.

chevron-rightterraform fmt -recursivehashtag

  • Formats all .tf files.

  • Keeps repo clean (important for teams).

Last updated