Update website/docs/language/style.mdx

Co-authored-by: rita <8647768+ritsok@users.noreply.github.com>
WAF-110-Terraform-Code-Style-Guide
Brian McClain 2 years ago committed by GitHub
parent 8c13af3856
commit f39124b54e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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.

Loading…
Cancel
Save