Course outlines for learning terraform.
expected time | requirements |
---|---|
90 minutes | A computer with Terraform installed, terraform knowledge. |
Goal: Use the most common best practices
Let’s go over a few best practices. Likey you/your company also has best practices. There is time to discuss these.
HashiCorp has a Terraform Style Guide as well, which covers a lot!
variables.tf
, assign them in tfvars file, or set them in the environment.versions.tf
.validate
and format (fmt
) often.README.md
- Define the purpose of the module.variables.tf
- Think about what to ask for.locals.tf
- Your place to map “simple” variables to complex variables.””output.tf
- Consider what to expose.main.tf
- The “logic” for the module.versions.tf
- Pin all dependencies.providers.tf
- All provider specific configuration.examples/*
- Try your module yourself.LICENSE
- Yes, likely a pretty open one like Apache-2.0.gitignore
- terraform.tfstate, terraform.tfstate.backup, .terraformSee here.