Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provider constraint <6.0.0 causes conflicts in other modules #217

Open
prshoper opened this issue Oct 24, 2024 · 1 comment
Open

Provider constraint <6.0.0 causes conflicts in other modules #217

prshoper opened this issue Oct 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@prshoper
Copy link

TL;DR

Using a Terraform provider version constraint <6.0.0 causes a conflict or bug in other modules. The issue likely occurs due to incompatibility between this version constraint and the rest of the configuration. Updating or adjusting the provider version might be required to resolve the conflict.

Expected behavior

Terraform should execute the plan and apply the configuration without issues, respecting the provider version constraint <=6.0.0 and maintaining compatibility with all modules

Observed behavior

The provider version constraint <=6.0.0 generates a conflict or bug in other modules, leading to a failure. The error message communicates that no successful version of the provider could be used due to the constraint.

Terraform Configuration

module "mysql-db" {
  source                          = "GoogleCloudPlatform/sql-db/google//modules/mysql"
  version                         = "22.1.0"
...
}

AND
module "iap_bastion" {
  source  = "terraform-google-modules/bastion-host/google"
  version = "7.1.0"
....
}

Terraform Version

Terraform v1.9.8

Additional information

No response

@prshoper prshoper added the bug Something isn't working label Oct 24, 2024
@prshoper prshoper changed the title Provider constrait <6.0.0 - generates bug in other modules Provider constraint <6.0.0 causes conflicts in other modules Oct 24, 2024
@Stevesibilia
Copy link

I can confirm that provider constraints is causing issue with some other modules (i.e.: lb-http).

To solve the issue you should change the minimum version of submodule instance_template to 12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants