hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.36k stars 1.75k forks source link

AlloyDB Relax regular expression for PSC allowed_consumer_projects to deal with project IDs as well as project numbers #18327

Open simonebruzzechesse opened 6 months ago

simonebruzzechesse commented 6 months ago

Community Note

Terraform Version & Provider Version(s)

Terraform v1.8.4 on

Affected Resource(s)

google_alloydb_instance

Terraform Configuration

module "alloydb" {
  source       = "./fabric/modules/alloydb"
  project_id   = var.project_id
  cluster_name = "db"
  location     = var.region
  name         = "db"
  network_config = {
    psc_config = { allowed_consumer_projects = [**var.project_id**] }
  } 
}

Debug Output

https://github.com/GoogleCloudPlatform/cloud-foundation-fabric/actions/runs/9382544629/job/25834205752

Expected Behavior

allowed_consumer_projects in psc_instance_config should deal with project ids as well as project numbers

Actual Behavior

No response

Steps to reproduce

  1. terraform apply

Important Factoids

No response

References

No response

b/345568902

ggtisc commented 5 months ago

Hi @simonebruzzechesse please provide us the main configuration of your google_alloydb_instance to replicate this issue