pulumi / pulumi-gcp

A Google Cloud Platform (GCP) Pulumi resource package, providing multi-language access to GCP
Apache License 2.0
182 stars 52 forks source link

Updating provider project doesn't cause resources to be recreated #494

Open danfhernandez opened 3 years ago

danfhernandez commented 3 years ago

I'd expect an update to the provider to invoke changes on resources dependent on that provider but that doesn't seem to be happening.

Basic setup of project I'm seeing this with:

  1. Project Resource
  2. Provider resource (uses output of above resource)
  3. GCS Bucket (uses provider above)

If I change the id of a project resource (which invokes a replace), the id is updated in the provider but then resources using the provider, the GCS Bucket in this case, don't change even though they have been orphaned because the project was replaced.

Example code: https://github.com/danfhernandez/pulumi-gcpx-project/tree/master/test-project

lukehoban commented 3 years ago

I believe this will be addressed by https://github.com/pulumi/pulumi-terraform-bridge/issues/244. But a good concrete scenario to validate as part of rolling out those changes to the GCP provider.