|
|
|
|
@ -18,7 +18,7 @@ Writing Terraform code in a consistent style makes it easier to read and maintai
|
|
|
|
|
- Run `terraform fmt` and `terraform validate` before committing your code to version control.
|
|
|
|
|
- Use `#` for single and multi-line comments.
|
|
|
|
|
- Use nouns for resource names and do not include the resource type in the name.
|
|
|
|
|
- Use underscores to separate multiple words in a resource name. Wrap resource type and name in double quotes in your resource definition.
|
|
|
|
|
- Use underscores to separate multiple words in a resource name. Wrap the resource type and name in double quotes in your resource definition.
|
|
|
|
|
- Let your code build on itself: define dependent resources after the resources that reference them.
|
|
|
|
|
- Include a type and description for every variable.
|
|
|
|
|
- Include a default value for optional variables.
|
|
|
|
|
|