hobberwickey
hobberwickey

Reputation: 6414

AWS Lambda diff between code in editor and deployed

The title really says it all, I haven't been able to find any information on it, so I'm assuming it's not possible without external source control but is there any way to see what the difference between the lambda code currently deployed and what changes are waiting to be deployed?

Upvotes: 0

Views: 960

Answers (2)

mxrxkx
mxrxkx

Reputation: 1

This answer will work with using the AWS built-in console code editor

  1. Select-all code in the code editor; Copy-paste to an external code editor; Save it with appropriate name.

  2. Control+click (Mac) or Right-mouse click (Windows) in AWS code editor; Select "Command Palette..." option; Select "Lambda: Reset function code" - This is the currently deployed Lambda without undeployed changes. Once again: Select-all; Copy-paste to external code editor, and Save with appropriate name.

  3. Now you can use a diff/comparison feature of your external code editor.

Upvotes: 0

James
James

Reputation: 100

The only way to compare versions of your function (at a code level comparison) is by using external source control options like git.

Upvotes: 1

Related Questions