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

Referenced Google module vm/instance-template which is enforcing hashicorp/google < 6 #210

Closed
zaphod72 opened this issue Sep 10, 2024 · 5 comments

Comments

@zaphod72
Copy link

version = "~> 11.0"

references

  source  = "terraform-google-modules/vm/google//modules/instance_template"
  version = "~> 11.0"

which has
https://github.com/terraform-google-modules/terraform-google-vm/blob/0cf3225e2f347794e0f9f50ffc36cad17845101c/modules/instance_template/versions.tf#L22

    google-beta = {
      source  = "hashicorp/google-beta"
      version = ">= 5.5, < 6"
    }

Needs terraform-google-modules/terraform-google-vm#400 to be merged :/

@zaphod72
Copy link
Author

The terraform-google-vm PR has been merged.

@RoopeHakulinen
Copy link

Just echoing here that this is very much needed as currently it is not really possible to use google-beta v6 in a stack that uses this module.

@DucretJe
Copy link

Would it be possible to release a new version of this module? As @zaphod72 it's merged in main but not usable directly since 7.1.0 is still pointing to VM 11.0

https://github.com/terraform-google-modules/terraform-google-bastion-host/blob/v7.1.0/main.tf#L47

@zaphod72
Copy link
Author

@RoopeHakulinen @DucretJe
Workaround

module "bastion" {
  source  = "git::https://github.com/terraform-google-modules/terraform-google-bastion-host.git?ref=release-please--branches--master"
  ...

@joran-fonjallaz
Copy link

thanks @zaphod72 for the quick fix 👍

just for completeness, bumping the providers to > 6.0 is motivated by this issue hashicorp/terraform-provider-google#18474

do you have by any chance an ETA for the next release including this change ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants