navapbc / template-infra

A template to set up foundational infrastructure for your application in AWS
Apache License 2.0
9 stars 2 forks source link

Pin terraform version to minor version #587

Closed rocketnova closed 2 months ago

rocketnova commented 3 months ago

We are currently pinning our terraform version only to the major version:

required_version = ">= 1.2.0, < 2.0.0"

This causes mysterious and sometimes hard to debug issues like #586. We should instead pin to the terraform minor version (e.g. 1.8.x) and do controlled upgrades to new minor versions (e.g. 1.8.x -> 1.9.x).

See very good, related writeup here: https://github.com/HHS/simpler-grants-gov/issues/1790