storage.Bucket
incorrectly triggers replacement when using configured dual-region location on each update
#868
Labels
awaiting-upstream
The issue cannot be resolved without action in another repository (may be owned by Pulumi).
kind/bug
Some behavior is incorrect or out of spec
resolution/fixed
This issue was fixed
What happened?
Since July 28 2022, Google Cloud Storage made configured dual-region locations generally available.
Configured dual regions are now the preferred way of defining the location. Where previously just 3 presets were available (
NAM4
,ASIA1
,EUR4
) user can now configure 2 regions and specify them in the location field using the format of{region}+{region}
(e.g.EUROPE-WEST4+EUROPE-WEST1
).The current GCP Provider incorrectly reads the containing multi region (
EU
,US
, etc) instead of the configured dual region, causing a replacement to be scheduled.Steps to reproduce
Configure a bucket like below, run two subsequent
pulumi up
s and notice that on every update the bucket gets replaced because it detects a change inlocation
.In the GCP Console you will see the bucket being created using the two regions.
Expected Behavior
No changes to the bucket are detected and no replacement is scheduled.
Actual Behavior
The provider incorrectly reads
EU
as the location instead of the configuration syntax and schedules a replacement.When using a dual-region preset like
EUR4
the everything works as expected.Versions used
Additional context
Release notes: https://cloud.google.com/storage/docs/release-notes#July_28_2022
Creating a dual region bucket through the GCP Console no longer supports using the presets and forces picking 2 regions.
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: