Skip to content

Instantly share code, notes, and snippets.

@gangstead
Created October 9, 2024 16:33
Show Gist options
  • Save gangstead/4a8359b9d8e80dccd3193eff4fdaf9c6 to your computer and use it in GitHub Desktop.
Save gangstead/4a8359b9d8e80dccd3193eff4fdaf9c6 to your computer and use it in GitHub Desktop.

Gangstead's 6-Step Plan to Terraform Happiness

  1. Use Terragrunt
    • If you hit a rough edge with Terraform it's probably addressed by Terragrunt
  2. Look at plan before proceeding with apply
  3. Thou shalt not use someone else's module
    • Look at the module's source and copy/paste the terraform therein
    • You can make your TF simpler and you won't have to keep up with the multiple updates per month, with breaking changes, that the module makes.
    • But do write your own modules to keep dev/prod environments matching as close as possible
  4. Update your providers
  5. destroy your experiments when done so lest your AWS bill explode
  6. Close AWS account and try again

Inspiration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment