google-cloud-powershell icon indicating copy to clipboard operation
google-cloud-powershell copied to clipboard

New-GcsBucket -Location only permits multi region continent not specific regions

Open aglasson opened this issue 3 years ago • 0 comments

https://github.com/GoogleCloudPlatform/google-cloud-powershell/blob/b0549f98b2a150830ff6ddf10c66c3252df7626d/Google.PowerShell/Storage/GcsBucket.cs#L162

The New-GcsBucket -Location parameter accepts only "ASIA", "EU", "US" as valid location values. This seems incorrect and individual regions should be valid locations, it is possible to deploy a GCS Bucket in a single region.

This example demonstrates those option via the GCP Web UI:
image

This documentation lists the location options that should be valid:
https://cloud.google.com/storage/docs/locations

This documentation demonstrates those additional location options being available in the gsutil mb (make bucket) command:
https://cloud.google.com/storage/docs/gsutil/commands/mb

aglasson avatar Oct 28 '21 06:10 aglasson