CallbackFunction refresh pollutes the state file with a temp folder path #3185
Labels
kind/bug
Some behavior is incorrect or out of spec
resolution/duplicate
This issue is a duplicate of another issue
What happened?
Investigating non-clean refresh on aws.lambda.CallbackFunction, noting that refresh wipes out asset information in favor of a pointer to a local temp dir which is broken.
Example
Output of
pulumi about
CLI
Version 3.97.0
Go Version go1.21.4
Go Compiler gc
Plugins
NAME VERSION
aws 6.17.0
awsx 2.4.0
docker 4.5.0
docker 3.6.1
nodejs unknown
Host
OS darwin
Version 14.1.1
Arch x86_64
This project is written in nodejs: executable='/Users/t0yv0/bin/node' version='v18.18.2'
Current Stack: t0yv0/aws-2246/dev
TYPE URN
pulumi:pulumi:Stack urn:pulumi:dev::aws-2246::pulumi:pulumi:Stack::aws-2246-dev
pulumi:providers:aws urn:pulumi:dev::aws-2246::pulumi:providers:aws::default_6_17_0
aws:iam/role:Role urn:pulumi:dev::aws-2246::aws:iam/role:Role::f
aws:iam/rolePolicyAttachment:RolePolicyAttachment urn:pulumi:dev::aws-2246::aws:iam/rolePolicyAttachment:RolePolicyAttachment::f-1b4caae3
aws:iam/rolePolicyAttachment:RolePolicyAttachment urn:pulumi:dev::aws-2246::aws:iam/rolePolicyAttachment:RolePolicyAttachment::f-a1de8170
aws:iam/rolePolicyAttachment:RolePolicyAttachment urn:pulumi:dev::aws-2246::aws:iam/rolePolicyAttachment:RolePolicyAttachment::f-b5aeb6b6
aws:iam/rolePolicyAttachment:RolePolicyAttachment urn:pulumi:dev::aws-2246::aws:iam/rolePolicyAttachment:RolePolicyAttachment::f-4aaabb8e
aws:iam/rolePolicyAttachment:RolePolicyAttachment urn:pulumi:dev::aws-2246::aws:iam/rolePolicyAttachment:RolePolicyAttachment::f-019020e7
aws:iam/rolePolicyAttachment:RolePolicyAttachment urn:pulumi:dev::aws-2246::aws:iam/rolePolicyAttachment:RolePolicyAttachment::f-74d12784
aws:iam/rolePolicyAttachment:RolePolicyAttachment urn:pulumi:dev::aws-2246::aws:iam/rolePolicyAttachment:RolePolicyAttachment::f-7cd09230
aws:iam/rolePolicyAttachment:RolePolicyAttachment urn:pulumi:dev::aws-2246::aws:iam/rolePolicyAttachment:RolePolicyAttachment::f-d32a66fa
aws:iam/rolePolicyAttachment:RolePolicyAttachment urn:pulumi:dev::aws-2246::aws:iam/rolePolicyAttachment:RolePolicyAttachment::f-e1a3786d
aws:lambda/function:Function urn:pulumi:dev::aws-2246::aws:lambda/function:Function::f
Found no pending operations associated with dev
Backend
Name pulumi.com
URL https://app.pulumi.com/t0yv0
User t0yv0
Organizations t0yv0, pulumi
Token type personal
Dependencies:
NAME VERSION
@pulumi/aws 6.17.0
@pulumi/awsx 2.4.0
@pulumi/pulumi 3.99.0
@types/node 18.19.3
Pulumi locates its logs in /var/folders/gk/cchgxh512m72f_dmkcc3d09h0000gp/T/com.apple.shortcuts.mac-helper// by default
Additional context
The diff of Pulumi state before and after refresh seems to indicate that the refresh is dropping the asset information and replacing it with a string pointing to the local machine temp folder, which will break if multiple machines are involved with running Pulumi against the given stack.
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).
The text was updated successfully, but these errors were encountered: