eager-pizza-94276
02/18/2025, 2:14 PMpulumi up
and pulumi preview
tells me that there is a difference:
❯ pulumi preview --stack prod --diff
Previewing update (prod)
View Live: <https://app.pulumi.com/Myapp/my-infra/prod/previews/>...
pulumi:pulumi:Stack: (same)
[urn=urn:pulumi:prod::my-infra::pulumi:pulumi:Stack::my-infra-prod]
~ gcp:dns/managedZone:ManagedZone: (update)
[id=projects/my-prod/managedZones/main-dns-zone-149721f]
[urn=urn:pulumi:prod::my-infra::my:DNS$gcp:dns/managedZone:ManagedZone::dns-zone-myapp-de]
[provider=urn:pulumi:prod::my-infra::pulumi:providers:gcp::default_7_38_0::8c5c096e-1bd4-42b4-b610-7d913ea9f664]
description : "DNS Zone for my prod"
dnsName : "myapp.de."
forceDestroy: false
name : "main-dns-zone-123456f"
visibility : "public"
Resources:
~ 1 to update
274 unchanged
Now I would LOVE to know what the difference actually is, but I don't know how to figure this out.
When I try to do an actual pulumi up
, the error is as follows:
❯ pulumi up --stack prod
Previewing update (prod)
...
Updating (prod)
View in Browser (Ctrl+O): <https://app.pulumi.com/myapp/my-infra/prod/updates/>...
Type Name Status Info
pulumi:pulumi:Stack my-infra-prod **failed** 1 error
└─ my:DNS dns
~ └─ gcp:dns:ManagedZone dns-zone-myapp-de **updating failed** 2 errors
Diagnostics:
pulumi:pulumi:Stack (my-infra-prod):
error: update failed
gcp:dns:ManagedZone (dns-zone-myapp-de):
error: sdk-v2/provider2.go:385: sdk.helper_schema: Error updating ManagedZone "projects/my-prod/managedZones/main-dns-zone-149721f": googleapi: Error 400: The field 'entity.managedZone.id' cannot be modified., immutableField: provider=google-beta@7.38.0
error: 1 error occurred:
* Error updating ManagedZone "projects/my-prod/managedZones/main-dns-zone-149721f": googleapi: Error 400: The field 'entity.managedZone.id' cannot be modified., immutableField
I am more than willing to edit whatever is necessary inside the pulumi state with pulumi state edit
🙂eager-pizza-94276
02/18/2025, 3:17 PM