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

google-beta: Provider registry.terraform.io/hashicorp/google-beta v6.21.0 does not have a package available for your current platform, linux_amd64 #21493

Closed
navilg opened this issue Feb 19, 2025 · 17 comments
Assignees
Labels

Comments

@navilg
Copy link

navilg commented Feb 19, 2025

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to a user, that user is claiming responsibility for the issue.
  • Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.

Terraform Version & Provider Version(s)

Terraform v1.3.6
on Linux AMD64

  • provider registry.terraform.io/hashicorp/google-beta v6.21.0

Affected Resource(s)

google_*

Terraform Configuration

Debug Output

No response

Expected Behavior

No response

Actual Behavior

No response

Steps to reproduce

  1. terraform apply

Important Factoids

No response

References

No response

@navilg navilg added the bug label Feb 19, 2025
@filip-kaminski
Copy link

filip-kaminski commented Feb 19, 2025

Same here. Exact error message:

Error: Incompatible provider version

Provider registry.terraform.io/hashicorp/google-beta v6.21.0 does not have
a package available for your current platform, linux_amd64.

Provider releases are separate from Terraform CLI releases, so not all
providers are available for all platforms. Other versions of this provider
may have different platforms supported.

@darrenjones24
Copy link

darrenjones24 commented Feb 19, 2025

A workaround is to pin the beta-version, even if it's not used

  required_providers {
    google = {
      source  = "hashicorp/google"
      version = "6.20.0"
    }
    # tflint-ignore: terraform_unused_required_providers
    google-beta = {
      source  = "hashicorp/google-beta"
      version = "6.20.0"
    }
}```

@AlanHale25
Copy link

Same here, it is currently breaking our builds.

Initializing the backend...
Successfully configured the backend "gcs"! Terraform will automatically
use this backend unless the backend configuration changes.
Initializing modules...
Downloading git::https://github.com/Equifax/7265_GL_MIG_IAAS.git?ref=v1.2.13 for instance_template...

  • instance_template in .terraform/modules/instance_template/instance_template
    Downloading git::https://github.com/Equifax/7265_GL_BILLING_IAAS.git?ref=v2.1.0 for instance_template.validate_labels...
  • instance_template.validate_labels in .terraform/modules/instance_template.validate_labels
    Downloading git::https://github.com/Equifax/7265_GL_MIG_IAAS.git?ref=v1.2.13 for mig...
  • mig in .terraform/modules/mig/mig
    Downloading git::https://github.com/Equifax/99999_UK_TDX_Golden_Image_Powershell_Scripts.git for startup-script-lib...
  • startup-script-lib in .terraform/modules/startup-script-lib/app-provision/common
    Initializing provider plugins...
  • Finding latest version of hashicorp/google...
  • Finding latest version of hashicorp/template...
  • Finding latest version of hashicorp/google-beta...
  • Finding latest version of hashicorp/null...
  • Installing hashicorp/google v6.21.0...
  • Installed hashicorp/google v6.21.0 (signed by HashiCorp)
  • Installing hashicorp/template v2.2.0...
  • Installed hashicorp/template v2.2.0 (signed by HashiCorp)
  • Installing hashicorp/null v3.2.3...
  • Installed hashicorp/null v3.2.3 (signed by HashiCorp)
    Error: Incompatible provider version
    Provider registry.terraform.io/hashicorp/google-beta v6.21.0 does not have a
    package available for your current platform, linux_amd64.
    Provider releases are separate from Terraform CLI releases, so not all
    providers are available for all platforms. Other versions of this provider
    may have different platforms supported.
    Error: Terraform exited with code 1.
    Error: Process completed with exit code 1.

@jbcraig
Copy link

jbcraig commented Feb 19, 2025

This is the same issue as #21492. Version 6.21.0 is still marked as "unreleased" in Changelog, was it released in error?

@mehdicopter
Copy link

mehdicopter commented Feb 19, 2025

A workaround is to pin the beta-version, even if it's not used

  required_providers {
    google = {
      source  = "hashicorp/google"
      version = "6.20.0"
    }
    # tflint-ignore: terraform_unused_required_providers
    google-beta = {
      source  = "hashicorp/google-beta"
      version = "6.20.0"
    }
}```

It works when you create your own resources, but when you use community modules where it is defined to download the higher version under 7.0.0, this is an issue...

@shuyama1
Copy link
Collaborator

Thanks for reporting the issue. We're actively investigating the issue now and will provide an update as soon as we have one.

@fernandoiury
Copy link

fernandoiury commented Feb 19, 2025

A workaround is to pin the beta-version, even if it's not used

  required_providers {
    google = {
      source  = "hashicorp/google"
      version = "6.20.0"
    }
    # tflint-ignore: terraform_unused_required_providers
    google-beta = {
      source  = "hashicorp/google-beta"
      version = "6.20.0"
    }
}```

It works when you create your own resources, but when you use community modules where it is defined to download the higher version under 7.0.0, this is an issue...

you can add the version constraint to your code too, even when using other modules. I suggest a small change to the example above:

version = "!= 6.21.0"

This way when Google releases a new version with the fix you won't have to change your code again to get "latest"

@shuyama1
Copy link
Collaborator

The missing binary package should be backfilled. Can someone try and see if the issue is still present? Thanks!

@wiktorn
Copy link

wiktorn commented Feb 19, 2025

Works for me

@brokenjacobs
Copy link

Still intermittently failing, CDN issues?

@HenryXiloj
Copy link

Works for me

@shuyama1
Copy link
Collaborator

Still intermittently failing, CDN issues?

Hey @brokenjacobs, is it still failing intermittently. The issue should be resolved now. Could you try again?

@timdzbank
Copy link

Works for me too.

@lnrdll
Copy link

lnrdll commented Feb 19, 2025

Works for me.

@AlanHale25
Copy link

Works now

@shuyama1
Copy link
Collaborator

Thanks for confirming. Closing this now. If you continue to experience the same issue, please comment here or open a new ticket. Thanks for your patience while this was being resolved!

@FeadTV
Copy link

FeadTV commented Feb 20, 2025

works for me 👍

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

No branches or pull requests