Open fbarrerafalabella opened 10 months ago
Hi @fbarrerafalabella. I'm sorry to hear that. Can you please include some code that reproduces your issue. I tried with this program:
name: dev-yaml
runtime: yaml
resources:
gcp:
type: pulumi:providers:gcp
options:
# version: 6.55.1 # <- start here, run `pulumi up`, then move to `7.2.1`.
version: 7.2.1
defaultProvider: true
bucket:
type: gcp:storage:Bucket
properties:
location: us-west1
name: example-140879
project: ${gcp_project}
publicAccessPrevention: enforced
uniformBucketLevelAccess: true
☝️ diffs cleanly after upgrading. Can you please include code that reproduces this issue? It might be what fields you have set on the bucket.
I am using typescript as runtime and this is the fragment of code that is presenting this behaviour
new gcp.storage.Bucket(
config.projectName,
{
location: 'US',
versioning: {
enabled: true,
},
},
{ protect: true }
);
let me prepare a simpler complete code that reproduces it and I will share it in here
We're seeing the same problem with gcp.storage.Bucket
and gcp.certificateauthority.CaPool
. After a lot of trial and error I managed to reproduce it for Bucket
:
Deploy a new bucket:
new gcp.storage.Bucket("test", {
location: "us",
});
Export the stack: pulumi stack export > stack.json
Edit the stack.json
and delete the effectiveLabels
from the outputs
section. This is one of the fields that it missing on the bucket that we're having issues with.
Import the stack: pulumi stack import --file stack.json
Deploy the stack: pulumi up
. Observe an update to the bucket.
Deploy the stack again: pulumi up
. Observe that there is still an update. This should never happen.
I have now added a workaround to our codebase by adding ignoreChanges: ["effectiveLabels"]
to the gcp.storage.Bucket
and ignoreChanges: ["issuancePolicy"]
to the gcp.certificateauthority.CaPool
.
What happened?
I updated the pulumi-gcp package to 7.2.1 from 6.55.1 and now everytime I perform a pulumi up it detects it needs to update the bucket component, but when getting the details, no change is shown, I wonder if on other projects this will result on pulumi trying to re-create the component
Example
Output of
pulumi about
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).