THEY-Consulting / they-terraform

Helper modules for an easier terraform life
3 stars 0 forks source link

Process for working without Versioning in they-terraform #30

Closed xddq closed 12 months ago

xddq commented 1 year ago

Context

We currently don't use versioning which means that breaking changes in they-terraform are escalated to our applications using they-terraform modules and they can suddenly no longer work. On the other hand, this approach has the upside that we are forced to keep our dependencies up-to-date. Also, no version management is needed. E.g. we don't have to update the versions for all our code using they-terraform modules. A downside of this approach is that (currently) updates/new commits on they-terraform only get appliead if we remove the terraform module cache locally.

Desired Outcome

xddq commented 1 year ago

idea: maybe we can use .envrc to create alias from tf init to tf init -upgrade

e2b commented 1 year ago

Ideas:

StarfishM commented 1 year ago

thanks for looking into this, and investigating hacky wacky workarounds @e2b I think for the time being, it's probably most feasible, that we use alias at our own discretion, it doesn't require any extra setup, other than our local shell config, personally I think setting up extra tooling is a bit much. One thought we should extend the README for they-terraform and add a little note about the necessity of using terraform init -upgrade, I don't think that's necessarily a command especially new people to tf would think of, what do you think?

StarfishM commented 12 months ago

closing this, as we discussed to reopen version releases for they-terraform, plus a mention in the readme about terraform init --upgrade will be made.