delightful-monkey-90700
07/04/2024, 11:15 PM@pulumi/gcp
from 6.x to 7.x, it suddenly wants to delete+create that VM, which fails because it's protected. I already have things like ignoreChanges: ['*', '**', '*.*', '**.**']
, but Pulumi still exits in error because it wants to delete the protected resourcelittle-cartoon-10569
07/04/2024, 11:20 PM~
beside a property that is listed with a recycle icon in the API docs. Changing these properties forces a replacement even if you don't want to: that rule comes from the provider. For example, changing an S3 bucket's name forces a replacement, you cannot change the name of an existing AWS bucket.little-cartoon-10569
07/04/2024, 11:20 PMdelightful-monkey-90700
07/04/2024, 11:20 PMlittle-cartoon-10569
07/04/2024, 11:21 PMdelightful-monkey-90700
07/04/2024, 11:21 PMdelightful-monkey-90700
07/04/2024, 11:21 PMdelightful-monkey-90700
07/04/2024, 11:21 PMdelightful-monkey-90700
07/04/2024, 11:22 PM- [urn=urn:pulumi:staging::keeta-consumer-production-cloud::gcp:serviceAccount/account:Account$gcp:compute/instance:Instance::vm-deployment-manager-us-central1]
+ [urn=urn:pulumi:staging::keeta-consumer-production-cloud::gcp:serviceaccount/account:Account$gcp:compute/instance:Instance::vm-deployment-manager-us-central1]
little-cartoon-10569
07/04/2024, 11:22 PMdelightful-monkey-90700
07/04/2024, 11:23 PM- - gcp:compute/instance:Instance: (delete) 🔒
- [id=projects/spatial-garage-385109/zones/us-central1-f/instances/vm-deployment-manager-us-central1-47f639f]
- [urn=urn:pulumi:staging::keeta-consumer-production-cloud::gcp:serviceAccount/account:Account$gcp:compute/instance:Instance::vm-deployment-manager-us-central1]
- [provider=urn:pulumi:staging::keeta-consumer-production-cloud::pulumi:providers:gcp::default_6_54_0::f1fbadba-1b27-4f92-9518-8134e81ecdfe]
+ + gcp:compute/instance:Instance: (create) 🔒
+ [urn=urn:pulumi:staging::keeta-consumer-production-cloud::gcp:serviceaccount/account:Account$gcp:compute/instance:Instance::vm-deployment-manager-us-central1]
+ [provider=urn:pulumi:staging::keeta-consumer-production-cloud::pulumi:providers:gcp::default_7_29_0::431e649d-839e-431d-a1fc-51fc289dbe61]
delightful-monkey-90700
07/04/2024, 11:23 PMlittle-cartoon-10569
07/04/2024, 11:23 PMdelightful-monkey-90700
07/04/2024, 11:24 PMlittle-cartoon-10569
07/04/2024, 11:24 PMdelightful-monkey-90700
07/04/2024, 11:24 PMversion
didn't helpdelightful-monkey-90700
07/04/2024, 11:25 PM@pulumi/gcp
installed at the same time, making it impossible to change the provider back by referencing the packagedelightful-monkey-90700
07/04/2024, 11:26 PMdelightful-monkey-90700
07/04/2024, 11:26 PMlittle-cartoon-10569
07/04/2024, 11:28 PMdelightful-monkey-90700
07/04/2024, 11:28 PMversion
, the provider is no longer changing, but it is still trying to delete+createdelightful-monkey-90700
07/04/2024, 11:29 PM+ gcp:compute/instance:Instance: (create) 🔒
[urn=urn:pulumi:staging::keeta-consumer-production-cloud::gcp:compute/network:Network$gcp:compute/subnetwork:Subnetwork$gcp:compute/instance:Instance::vm-deployment-manager-us-central1]
[provider=urn:pulumi:staging::keeta-consumer-production-cloud::pulumi:providers:gcp::default_6_54_0::f1fbadba-1b27-4f92-9518-8134e81ecdfe]
- gcp:compute/instance:Instance: (delete) 🔒
[id=projects/spatial-garage-385109/zones/us-central1-f/instances/vm-deployment-manager-us-central1-47f639f]
[urn=urn:pulumi:staging::keeta-consumer-production-cloud::gcp:serviceAccount/account:Account$gcp:compute/instance:Instance::vm-deployment-manager-us-central1]
[provider=urn:pulumi:staging::keeta-consumer-production-cloud::pulumi:providers:gcp::default_6_54_0::f1fbadba-1b27-4f92-9518-8134e81ecdfe]
little-cartoon-10569
07/04/2024, 11:29 PMdelightful-monkey-90700
07/04/2024, 11:29 PMlittle-cartoon-10569
07/04/2024, 11:30 PMlittle-cartoon-10569
07/04/2024, 11:31 PMpulumi refresh --clear-pending-creates
. Not sure if that's what you want...delightful-monkey-90700
07/04/2024, 11:31 PM$ pulumi stack export | jq --tab '. | keys'
[
"deployment",
"version"
]
$ pulumi stack export | jq --tab '.deployment | keys'
[
"manifest",
"resources",
"secrets_providers"
]
$
little-cartoon-10569
07/04/2024, 11:32 PMlittle-cartoon-10569
07/04/2024, 11:34 PMdelightful-monkey-90700
07/04/2024, 11:34 PMdelightful-monkey-90700
07/04/2024, 11:34 PM$ pulumi stack export | jq --tab '.deployment.resources | keys' | wc -l
738
$ pulumi stack export | jq --tab '.deployment.resources | keys' | tail
727,
728,
729,
730,
731,
732,
733,
734,
735
]
little-cartoon-10569
07/04/2024, 11:35 PMdelightful-monkey-90700
07/04/2024, 11:36 PMdelightful-monkey-90700
07/04/2024, 11:37 PMdelightful-monkey-90700
07/04/2024, 11:38 PM$ pulumi stack export | jq --tab '.' | grep -3 '"delete"'
$
little-cartoon-10569
07/04/2024, 11:43 PMdelightful-monkey-90700
07/04/2024, 11:44 PM--diff
delightful-monkey-90700
07/04/2024, 11:45 PMdelightful-monkey-90700
07/04/2024, 11:48 PMdelightful-monkey-90700
07/04/2024, 11:50 PM~ pulumi:providers:gcp: (update)
[id=8f1d653f-2285-46c8-bef4-3ddbeede25fe]
[urn=urn:pulumi:staging::keeta-consumer-production-cloud::keeta:gcp:Deployment$pulumi:providers:gcp::keetanet-cluster-base-provider]
~ version: "6.54.0" => "7.29.0"
error: unrecognized resource type (Check): gcp:serviceaccount/account:Account
delightful-monkey-90700
07/05/2024, 2:53 AMdelightful-monkey-90700
07/05/2024, 3:01 AMserviceAccount
became all lower-caseddelightful-monkey-90700
07/05/2024, 3:01 AMNEW: [urn=urn:pulumi:staging::keeta-consumer-production-cloud::gcp:service**a**ccount/account:Account$gcp:compute/instance:Instance::vm-deployment-manager-us-central1]
OLD: [urn=urn:pulumi:staging::keeta-consumer-production-cloud::gcp:service**A**ccount/account:Account$gcp:compute/instance:Instance::vm-deployment-manager-us-central1]
delightful-monkey-90700
07/05/2024, 4:26 AMlittle-cartoon-10569
07/05/2024, 4:29 AMdelightful-monkey-90700
07/05/2024, 4:33 AMdelightful-monkey-90700
07/05/2024, 4:33 AMerror: Error: Invalid asset encountered when unmarshaling resource property
at deserializeProperty (/home/rkeene/devel/keeta-production/node_modules/@pulumi/runtime/rpc.ts:578:27)
at Object.deserializeProperties (/home/rkeene/devel/keeta-production/node_modules/@pulumi/runtime/rpc.ts:181:24)
at /home/rkeene/devel/keeta-production/node_modules/@pulumi/runtime/resource.ts:798:33
delightful-monkey-90700
07/05/2024, 4:34 AMdelightful-monkey-90700
07/05/2024, 4:50 AMdelightful-monkey-90700
07/05/2024, 4:52 AM