Skip to content

Does tfaction support terraform required_version specific pinning? #993

Discussion options

You must be logged in to vote

You can pin Terraform version using aqua.

https://github.com/suzuki-shunsuke/tfaction-example/blob/e8688924120f65c48839850a980feb241ac80dd8/aws/terraform-ci/aqua.yaml#L6

Then you can update Terraform by Renovate.

e.g. suzuki-shunsuke/tfaction-example#1727

--

If you'd like to pin Terraform by .terraform-version, you can use tfenv.
You can install tfenv using aqua.

e.g.

- name: tfutils/[email protected]

But as I said you can install Terraform by aqua without tfenv.
So I usually don't use tfenv.

--

I think required_version isn't mandatory, but if you pin Terraform by required_version, Renovate supports updating required_version.

https://docs.renovatebot.com/modules/manager/terraform/

So you can u…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dllegru
Comment options

Answer selected by suzuki-shunsuke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants