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 15: Line 15:
 
* Use built-in formatting: <code>[[terraform fmt]]</code>
 
* Use built-in formatting: <code>[[terraform fmt]]</code>
 
* Limit the complexity of expressions.
 
* Limit the complexity of expressions.
* Use count for conditional values.
+
* Use <code>[[count]]</code> for conditional values.
* Use for_each for iterated resources.
+
* Use <code>[[for_each]]</code> for iterated resources.
 
* Publish modules to a registry.
 
* Publish modules to a registry.
  

Revision as of 13:35, 3 July 2022

Best practices from Google Cloud team

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

Related

See also

Advertising: