You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Lambda version is not updated when a layer from the same stack has code changes #8053
When updating the code for a layer that a lambda in the same stack uses, a new layer version is updated, and the $LATEST lambda version is updated, but no new lambda numeric version is created that points to the new layer version.
It appears this is very similar to this previous issue: #4510
Every deploys "successfully" but when the versioned lambda stack output arn is referenced the version is unchanged and therefore still points to an old layer.
If this is a bug rather than just misunderstanding of how layers within the same stack should be used, then I will submit a PR that includes the timestamped lambda layer zip S3 path so that the logical id will change each time a new layer zip is uploaded, similar to how #4510 was handled.
Activity
medikoo commentedon Aug 6, 2020
@pwithams thanks for reporting.
There are known issues in how we calculate lambda version hash (see also: #7822)
PR that fixes that would be very welcome!
pwithams commentedon Aug 11, 2020
I've submitted a PR for this issue. I couldn't replicate #7822 consistently so I instead added a test that I think simulates the conditions described.
orr-levinger commentedon Nov 5, 2023
This still happens.. using version 2.7.0 the plugin created version N in the lamda layers but didnt update the lambda itself toy use the version..