Skip to content

Conversation

@vimtor
Copy link
Collaborator

@vimtor vimtor commented Jan 20, 2026

closes #6264

the diff logic was incorrect because

removing Diff entirely lets Pulumi use its default input comparison, which correctly detects when the environment changes. we are already doing something similar for the aws-function-code-updater.go

proof of it working
const api = new sst.aws.Function("MyFunction", {
  url: true,
  handler: "index.handler"
});

api.addEnvironment({
  TEST: "1234"
})
CleanShot 2026-01-20 at 11 49 10@2x

change TEST=5678 and redeploy:

CleanShot 2026-01-20 at 11 49 47@2x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Function.addEnvironment is lost and/or changes are not reflected

1 participant