Open tferazzi opened 11 months ago
I can repro this issue locally, here is a full program:
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
new gcp.compute.Instance('my-instance-name', {
name: 'my-instance-name',
zone: 'europe-west4-a',
machineType: 'f1-micro',
networkInterfaces: [
{
network: "default",
accessConfigs: [
{
networkTier: 'PREMIUM',
},
],
},
],
bootDisk: {
initializeParams: {
image: 'ubuntu-2204-jammy-v20230727',
},
},
});
cc @t0yv0 on another diff issue.
What happened?
Deploying an instance with a public IP initially and removing it afterwards does not get recognized by pulumi.
Example
Deploying an instance with a public IP like this:
And then removing the
accessConfigs
block like this:And doing
pulumi up
again, results in no update/change of the instance.Output of
pulumi about
Additional context
This also does not work the other way round:
accessConfigs
block tonetworkInterfaces
pulumi up
-> results in no changesContributing
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).