-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dual region bucket, custom placement config is picked up as a diff without any changes #1780
Comments
Hi @aaron-tillekeratne. Thanks for opening an issue and including a repro. |
Hey team, any updates on this, I wonder if there's been anyone else experiencing this issue? |
EDIT: The workaround is to upper-case the locations: Hey @aaron-tillekeratne, thanks for following up here! I had another look at it and have confirmed it reproes with: import pulumi
import pulumi_gcp as gcp
pulumi_state_bucket = gcp.storage.Bucket(
"pulumi-state-bucket",
location="AU",
custom_placement_config=gcp.storage.BucketCustomPlacementConfigArgs(
data_locations=["australia-southeast1", "australia-southeast2"]
),
) running it under
So you can workaround the issue by just upper-casing the strings! I've confirmed that the following does not have the same issue: import pulumi
import pulumi_gcp as gcp
pulumi_state_bucket = gcp.storage.Bucket(
"pulumi-state-bucket",
location="AU",
custom_placement_config=gcp.storage.BucketCustomPlacementConfigArgs(
data_locations=["AUSTRALIA-SOUTHEAST1", "AUSTRALIA-SOUTHEAST2"]
),
) I'll investigate if this is something we can handle on our side or open an issue upstream for it if not. Thank you for engaging here! |
Raised hashicorp/terraform-provider-google#18035 upstream |
Roger, will do for now. Cheers |
This was fixed upstream and we've picked that up - lowercase data locations should now work as well: GoogleCloudPlatform/magic-modules#10936 |
What happened?
When creating dual region buckets, as per the the documentation, using the
custom_placement_config
re-running without any changes causes a diff. This diff drop creates the buckets.Example
Running pulumi preview on the above code
Output of
pulumi about
CLI
Version 3.107.0
Go Version go1.22.0
Go Compiler gc
Plugins
NAME VERSION
gcp 6.67.1
python unknown
Host
OS debian
Version 11.9
Arch x86_64
This project is written in python: executable='/usr/local/bin/python3' version='3.11.8'
Current Stack: organization/Foundation/cloudnest
TYPE URN
pulumi:pulumi:Stack urn:pulumi:cloudnest::Foundation::pulumi:pulumi:Stack::Foundation-cloudnest
foundation:components:JGCPBaseProject urn:pulumi:cloudnest::Foundation::foundation:components:JGCPBaseProject::cloudnest-host_proj
pulumi:providers:gcp urn:pulumi:cloudnest::Foundation::pulumi:providers:gcp::default_6_67_1
gcp:organizations/folder:Folder urn:pulumi:cloudnest::Foundation::gcp:organizations/folder:Folder::nests_folder
gcp:organizations/folder:Folder urn:pulumi:cloudnest::Foundation::gcp:organizations/folder:Folder::cloudnest-folder
gcp:organizations/project:Project urn:pulumi:cloudnest::Foundation::foundation:components:JGCPBaseProject$gcp:organizations/project:Project::cloudnest-host_proj-project
gcp:compute/network:Network urn:pulumi:cloudnest::Foundation::foundation:components:JGCPBaseProject$gcp:compute/network:Network::cloudnest-host_proj-vpc-network
gcp:serviceAccount/account:Account urn:pulumi:cloudnest::Foundation::gcp:serviceAccount/account:Account::cloudnest-host_proj-ghactions-sa
gcp:iam/workloadIdentityPool:WorkloadIdentityPool urn:pulumi:cloudnest::Foundation::gcp:iam/workloadIdentityPool:WorkloadIdentityPool::cloudnest-host_proj-default-wif-pool
gcp:projects/defaultServiceAccounts:DefaultServiceAccounts urn:pulumi:cloudnest::Foundation::gcp:projects/defaultServiceAccounts:DefaultServiceAccounts::cloudnest-host_proj-depriv-accounts
gcp:projects/service:Service urn:pulumi:cloudnest::Foundation::gcp:projects/service:Service::nest_cloud_iam_api
gcp:projects/service:Service urn:pulumi:cloudnest::Foundation::gcp:projects/service:Service::nest_service_usage_api
gcp:projects/service:Service urn:pulumi:cloudnest::Foundation::gcp:projects/service:Service::nest_cloud_rm_api
gcp:projects/service:Service urn:pulumi:cloudnest::Foundation::gcp:projects/service:Service::nest_service_networking_api
gcp:projects/service:Service urn:pulumi:cloudnest::Foundation::gcp:projects/service:Service::nest_bigquery_api
gcp:projects/service:Service urn:pulumi:cloudnest::Foundation::gcp:projects/service:Service::cloud-billing-api-cloud-nest
gcp:serviceAccount/account:Account urn:pulumi:cloudnest::Foundation::gcp:serviceAccount/account:Account::nestbuilder_sa
gcp:projects/service:Service urn:pulumi:cloudnest::Foundation::gcp:projects/service:Service::nest_sql_admin_api
gcp:serviceAccount/iAMBinding:IAMBinding urn:pulumi:cloudnest::Foundation::gcp:serviceAccount/iAMBinding:IAMBinding::cloudnest-host_proj-gasa-wif-bind
gcp:compute/subnetwork:Subnetwork urn:pulumi:cloudnest::Foundation::foundation:components:JGCPBaseProject$gcp:compute/subnetwork:Subnetwork::cloudnest-host_proj-subnet
gcp:projects/iAMMember:IAMMember urn:pulumi:cloudnest::Foundation::gcp:projects/iAMMember:IAMMember::project-iam-member
gcp:projects/iAMMember:IAMMember urn:pulumi:cloudnest::Foundation::gcp:projects/iAMMember:IAMMember::nestbuilder-secret-accessor
gcp:projects/iAMMember:IAMMember urn:pulumi:cloudnest::Foundation::gcp:projects/iAMMember:IAMMember::nestbuilder_storage_member
gcp:folder/iAMMember:IAMMember urn:pulumi:cloudnest::Foundation::gcp:folder/iAMMember:IAMMember::nestbuilder-productcreateorserviceagent
gcp:storage/bucket:Bucket urn:pulumi:cloudnest::Foundation::gcp:storage/bucket:Bucket::pulumi-state-bucket
Found no pending operations associated with cloudnest
Backend
Name b42d0795a4ef
URL gs://jahan-foundation-pulumi-backend
User vscode
Organizations
Token type personal
Dependencies:
NAME VERSION
black 24.2.0
foundation 0.1.1
GitPython 3.1.41
ipython 8.21.0
isort 5.13.2
pip 24.0
setuptools 69.0.3
wheel 0.42.0
Pulumi locates its logs in /tmp by default
Additional context
No response
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: