15. Final Thoughts

Developer Workflow & Automation

  1. Write/update code

  2. Run changes locally (for dev env)

  3. Create pull request

  4. Run Tests via CI

  5. Deploy to staging via CD (on merge to main)

  6. Deploy to prod via CD (on release)


Additional Tools

  1. Terragrunt

    • Minmizes code repitition

    • Enables multi-account seperation (improved isolation/security)

  2. Cloud Nuke

    • Easy cleanup of cloud resources

  3. Makefiles

    • Prevent human erro


Potential Gotchas

  • Name changes when refactoring

  • Sensitive data in Terraform state files

  • Cloud timeouts

  • Naming conflicts

  • Forgetting to destory test-infra

  • Uni-directional version upgrades

  • Multiple ways to accomplish same config

  • Some params are immutable

  • Out of band changes


Last updated