https://pulumi.com logo
#automation-api
Title
# automation-api
l

lemon-lamp-41193

07/01/2022, 2:24 AM
I noticed EngineEvents omitted by Pulumi are different between a recently created Pulumi stack, and an older one. Any idea on why “metadata” is a dict in one instance, and type StepEventMetadata in another? Both are on the newest version of Pulumi and pulumi-aws.
Copy code
# New Pulumi Project
EngineEvent(
    ...
    resource_pre_event=ResourcePreEvent(
        metadata=StepEventMetadata(
            op=<OpType.SAME: 'same'>,
            urn='urn:pulumi:dev::...

# Old Pulumi Project
EngineEvent(
    ...
    resource_pre_event=ResourcePreEvent(
        metadata={
            'op': 'same',
            'urn': 'urn:pulumi:dev::...
b

bored-oyster-3147

07/01/2022, 4:10 PM
Was there a version change between runs? Possible deserialization rules changed or something
l

lemon-lamp-41193

07/01/2022, 5:01 PM
Both are running under v3.34.1. I Looked through recent commits to Pulumi but it looks to me the like the EngineEvents code hasn’t been touched in a while. Perhaps there’s some sort of remnant in the stack file from the previous version causing this, but I can’t seem to track down the issue.