Difference between revisions of "Terraform best practices"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 6: Line 6:
 
* Protect [[stateful resources]]: <code>[[lifecycle]] { [[prevent_destroy]] = true }</code>
 
* Protect [[stateful resources]]: <code>[[lifecycle]] { [[prevent_destroy]] = true }</code>
 
* Expose [[Terraform: output|outputs]]: <code>[[outputs.tf]]</code>
 
* Expose [[Terraform: output|outputs]]: <code>[[outputs.tf]]</code>
* Use [[data sources]].
+
* Use [[data sources]]: <code>[[data.]]</code>
 
* Adopt a naming convention.
 
* Adopt a naming convention.
 
* Use [[variables]] carefully: <code>[[variables.tf]]</code>
 
* Use [[variables]] carefully: <code>[[variables.tf]]</code>

Revision as of 01:35, 21 March 2023

Best practices from Google Cloud team

https://cloud.google.com/docs/terraform/best-practices-for-terraform

Operations

Related

Activities

See also

Advertising: