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

Bump up version of hashicorp/google provider #39

Closed
wojtek-mms opened this issue Feb 21, 2022 · 0 comments
Closed

Bump up version of hashicorp/google provider #39

wojtek-mms opened this issue Feb 21, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@wojtek-mms
Copy link

wojtek-mms commented Feb 21, 2022

TL;DR

Currently, it is not possible to use dataflow module with the latest version of hashicorp/google provider - 4.11.0. The reason is in version constraint in versions.tf file:

    google = {
      source  = "hashicorp/google"
      version = "~> 3.53"
    }

Is there any specific reason why this configuration does not support version 4, e.g.:

    google = {
      source  = "hashicorp/google"
      version = ">= 3.53, < 5.0"
    }

Expected behavior

The latest dataflow module version is compatible with the latest version of google provider.

Observed behavior

Dataflow module prevents from using google provider in version >= 4.0

$ terraform init -upgrade
Upgrading modules...
Downloading registry.terraform.io/terraform-google-modules/dataflow/google 2.1.0 for dataflow-job...
- dataflow-job in .terraform/modules/dataflow-job

Initializing the backend...

Initializing provider plugins...
- Finding hashicorp/google versions matching "~> 3.53, ~> 4.11.0"...
- Finding latest version of hashicorp/google-beta...
- Using previously-installed hashicorp/google-beta v4.11.0
╷
│ Error: Failed to query available provider packages
│ 
│ Could not retrieve the list of available versions for provider hashicorp/google: no available releases match the given
│ constraints ~> 3.53, ~> 4.11.0

Terraform Configuration

# versions.tf
terraform {
  required_providers {
    google = {
      source  = "hashicorp/google"
      version = "~> 4.11.0"
    }
  }
}

# dataflow.tf
module "dataflow-job" {
  source  = "terraform-google-modules/dataflow/google"
  version = "2.1.0"
  ...
}

Terraform Version

~> 4.11.0

Additional information

No response

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