Not been able to create regional bucket
Ss081994 opened this issue · 3 comments
TL;DR
We have been using google cloud storage module to create a sample bucket . We are trying to create a regional bucket in us-east1 but the terraform code is throwing an error. Attached FYR
Error: googleapi: Error 400: Project 982353099527 may not create storageClass MULTI_REGIONAL buckets with locationConstraint US-EAST1., invalid
│
│ with module.cloud_storage.google_storage_bucket.buckets["pcrf-01"],
│ on .terraform/modules/cloud_storage/main.tf line 40, in resource "google_storage_bucket" "buckets":
│ 40: resource "google_storage_bucket" "bucket" {
│
Expected behavior
We have created a regional bucket before using this module. The version was 2.2.0 . The expected behaviour is it should allow the user to choose whether to create a regional or multi regional bucket.
Observed behavior
No response
Terraform Configuration
module "cloud_storage" {
source = "terraform-google-modules/cloud-storage/google"
version = ">= 2.2.0"
project_id = "imperial-terra-343108"
prefix = "bkt-nt-dev"
location = "us-east1"
storage_class = "regional"
labels = {
environment = "dev"
}
Terraform Version
1.1.7
Additional information
No response
What does your Terraform plan show?
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
Same problem, my output is the following
googleapi: Error 400: Project XXXXXXXXXXX may not create storageClass MULTI_REGIONAL buckets with locationConstraint EUROPE-WEST1., invalid