Pin Terraform versions doesn't seem to work #33642
Replies: 1 comment 3 replies
-
How do you want to specify this?
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How are you running Renovate?
A Mend.io-hosted app
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
Azure DevOps
Please tell us more about your question or problem
We are using renovatebot in our environment. Sometimes we don't want specific terrafrom versions to be updated, so we tried that with pinning.
renovate.json:
{ "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ "group:all" ], "commitMessagePrefix": "REN-000: ", "packageRules": [ { "description": "Pin provider versions", "enabled": false, "matchFileNames": ["versions.tf"], "matchDatasources": ["terraform-provider"], "matchUpdateTypes": ["pin"] } ] }
versions.tf:
terraform { required_version = "> 1.0.0" required_providers { azuredevops = { source = "microsoft/azuredevops" version = "= 1.4.0" # 1.5.0 results in Error } aws = { source = "hashicorp/aws" version = ">= 5.0.0" } } }
Unfortunately this results in a new Pull Request with the following changes:
terraform { required_version = "> 1.0.0" required_providers { azuredevops = { source = "microsoft/azuredevops" version = "1.5.0" # 1.5.0 results in Error } aws = { source = "hashicorp/aws" version = ">= 5.0.0" } } }
Are we doing something wrong, or is it a bug?
Logs (if relevant)
Logs
Beta Was this translation helpful? Give feedback.
All reactions