Difference between revisions of "Terraform best practices"

From wikieduonline
Jump to navigation Jump to search
Line 33: Line 33:
 
* [[Best practices]]
 
* [[Best practices]]
 
* [[main]]
 
* [[main]]
* [[prevent_destroy]]
+
* <code>[[prevent_destroy]]</code>
  
 
== See also ==
 
== See also ==

Revision as of 07:16, 18 July 2022

Best practices from Google Cloud team

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


Operations

  • Don't modify Terraform state manually.
  • Always plan first.
  • Implement an automated pipeline.
  • Use service account credentials for CI.
  • Avoid importing existing resources.
  • Regularly review version pins.
  • Use application default credentials when running locally.
  • Set aliases to Terraform.

Related

See also

Advertising: