-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
ref(serverless): Use GitHub action to zip lambda layer (second try) #5093
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ref(serverless): Use GitHub action to zip lambda layer (second try) #5093
Conversation
size-limit report 📦
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for improving the Lambda layer build experience! I think it's good to unify the build process of the Node layer as much as possible with the Python layer. And anything that makes build-aws-lambda-layer.js
script shorter and less complex is a good change IMO :D
Just left a small comment with a possible improvement for the future
EDIT: Found one more thing, see below
Co-authored-by: Lukas Stracke <[email protected]>
echo "SDK_VERSION=$SDK_VERSION" | ||
echo "SDK_VERSION=$SDK_VERSION" >> $GITHUB_ENV |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
echo "SDK_VERSION=$SDK_VERSION" | |
echo "SDK_VERSION=$SDK_VERSION" >> $GITHUB_ENV | |
echo "SDK_VERSION=$SDK_VERSION" | tee -a $GITHUB_ENV |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tee -a
does exactly what you did in 2 lines :)
…5093) * Removed zipping from build script * Assemble Lambda Layer zip using GitHub action. Co-authored-by: Lukas Stracke <[email protected]>
This PR does basically two things:
build-awslambda-layer.js
to NOT zip the layer and put all layer contents in/dist-serverless
/dist-serverless
craft
release script takes it and puts it into AWS Lambda.)