terraform-google-modules / terraform-google-cloud-storage

Creates one or more Cloud Storage buckets and assigns basic permissions on them to arbitrary users
https://registry.terraform.io/modules/terraform-google-modules/cloud-storage/google
Apache License 2.0
169 stars 558 forks source link

Out of date gcp provider (Support version 5+) #305

Closed fishpen0 closed 7 months ago

fishpen0 commented 7 months ago

TL;DR

This module currently pins the gcp provider to 4.42, version 5+ has been out for several months with 5.21 being the current GA version

Expected behavior

No response

Observed behavior

│ 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 >= 4.42.0, < 5.0.0, ~> 5.18

Terraform Configuration

module "bucket" {
  source  = "terraform-google-modules/cloud-storage/google//modules/simple_bucket"
  version = "~> 5.0"

  name                     = var.name
  project_id               = var.project_id
  location                 = var.location
  storage_class            = var.storage_class
  bucket_policy_only       = true
  labels                   = var.labels
  force_destroy            = true
  public_access_prevention = "enforced"
  versioning               = var.versioning

  encryption = var.encryption

  lifecycle_rules = var.lifecycle_rules

  retention_policy = var.retention_policy
}

### Terraform Version

```sh
1.7.5

Additional information

No response