Skip to content

Terraform Init Fails on 0-Bootstrap #1423

Open
@StylusEater

Description

@StylusEater

TL;DR

An initial terraform init fails with the following error:

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.33.0, >= 3.43.0, >= 3.50.0, >= 3.53.0, >= 3.67.0, >= 3.77.0, >= 3.83.0, >= 4.3.0, >= 4.25.0, >= 4.28.0, >= 4.40.0, >=4.64.0, < 5.0.0, >=5.6.0, >= 5.8.0, >= 5.31.0, >= 5.41.0, >= 6.14.0, 6.41.0, < 7.0.0

Expected behavior

terraform init runs successfully.

Observed behavior

terraform init failed.

Terraform Configuration

See the fix I posted.

Terraform Version

v1.5.7

Terraform Provider Versions

See additional information for fix.

Additional information

I ran a terraform providers and found:

-- module.tfc-oidc
provider[registry.terraform.io/hashicorp/google] >= 3.53.0, < 5.0.0

This logic doesn't track.

After modifying terraform_cloud.tf and updating the version from "0.1.0" to "0.2.0" for the module "tfc-oidc" terraform init succeeded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions