GoogleCloudPlatform / google-cloud-powershell

PowerShell cmdlets for the Google Cloud Platform
http://googlecloudplatform.github.io/google-cloud-powershell/
Apache License 2.0
135 stars 61 forks source link

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

Open aglasson opened 2 years ago

aglasson commented 2 years ago

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