Comments (8)
That is unexpected - the underlying provider does not mark ipConfiguration
or authorizedNetworks
as ForceNew
so changes to these should not be requiring replacement.
from pulumi-gcp.
Had the same issue with gcp.container.Cluster
too when changing the nodeConfig, but I assumed this was expected behaviour as you can't change the default pool.
from pulumi-gcp.
Yes - for Cluster#nodeConfig
it is currently expected that that would require replacement. The underlying reason is this: https://github.com/terraform-providers/terraform-provider-google/blob/51e63bfff2d2acba78bdbb35227669b820a4d61e/google/node_config.go#L26 is marked ForceNew
, which I expect is ultimately a limitation in the GCP API (ClusterUpdate does not support updating NodeConfig).
But DatabaseInstance#settings
does not require replacement (no ForceNew
). So it's not clear why Pulumi would be suggesting you need to replace on changes here.
from pulumi-gcp.
It is possible to change the node config in the console however, and as far as I can see this does not replace the cluster as all the resources are restored on the new nodes.
from pulumi-gcp.
I suspect this is another case related to pulumi/pulumi-azure#182.
from pulumi-gcp.
Confirmed that this is another case of pulumi/pulumi-terraform#329.
From detailed logs - we see:
I0302 11:45:45.371898 58867 provider_plugin.go:303] Provider[gcp, 0xc0009600f0].Diff(urn:pulumi:dev::20190226::gcp:sql/databaseInstance:DatabaseInstance::master,master-aa68e7f) success: changes=2 #replaces=[region] #stables=[databaseVersion name masterInstanceName project] delbefrepl=false
In particular, the region
property is what's actually triggering the replacement. As in the other cases in , this is:
"region": {
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
},
Closing this out and will track in that issue instead
from pulumi-gcp.
This is in fact another instance of the same class of TF bug seen in
pulumi/pulumi-aws#451. The schema for region
that is present in the version of the GCP TF provider that this repo is locked to does not include the Computed
property: https://github.com/terraform-providers/terraform-provider-google/blob/v1.20.0/google/resource_sql_database_instance.go#L58-L62
from pulumi-gcp.
Here's the TF issue:
hashicorp/terraform-provider-google#2554
from pulumi-gcp.
Related Issues (20)
- Upgrade terraform-provider-google-beta to v4.54.0 HOT 1
- Can't select Dataplane V2 in GKE HOT 3
- Upgrade terraform-provider-google-beta to v4.55.0 HOT 1
- (Feature) Set WebAppConfig HOT 1
- Deploying a Google Cloud HttpCallbackFunction uses npm instead of yarn HOT 2
- Adding Tag to GKE cluster does not work with Pulumi HOT 2
- crash when upgrading from 6.48 -> 6.50 HOT 4
- Upgrade terraform-provider-google-beta to v4.56.0 HOT 1
- Import docs for IAM resources are incorrect HOT 1
- Importing an IAM Policy with a deleted principal gives a warning/error HOT 1
- GCP Service Account IAM Policy Fails Periodically on Concurrent Policy Updates HOT 1
- GCP Security Policy Creation Failure with expr expression HOT 5
- GCP API Gateway Gateway YAML example not been generated HOT 2
- Upgrade terraform-provider-google-beta to v4.57.0 HOT 2
- Some `get` functions are missing the `output` variant HOT 3
- Failed to create gcp:apigateway:ApiConfig HOT 2
- Upgrade terraform-provider-google-beta to v4.58.0 HOT 2
- managedZoneId does not match the actual dns managed_zone id. HOT 2
- GCP ProjectSink destinations are missing examples
- Can't autoscale default-pool in GKE HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pulumi-gcp.