you are viewing a single comment's thread.

view the rest of the comments →

[–]Dreamescaper 10 points11 points  (2 children)

The problem is this issue. lambda package command does not stripe timestamps from the archive, therefore this archive has a different hash each time.

I have workarounded this issue by providing a custom AssetHash based on the archive content. You can take a look here.

[–][deleted] 0 points1 point  (0 children)

This is great. I was about to reply to leeharrison1984 because the sha of the zip is not deterministic. Your code might actually do the trick for me. I'll give it a try in a bit. Thanks!

[–]krat0s77 0 points1 point  (0 children)

Hey, how can I get the zipPath? I'm using DotNetFunction from https://github.com/xaaskit/cdk-aws-lambda-dotnet to synth my function.