Skip to content
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

AWS is rolling out updates to AWS Lambda execution environment #1873

Open
dmateos opened this issue May 15, 2019 · 13 comments
Open

AWS is rolling out updates to AWS Lambda execution environment #1873

dmateos opened this issue May 15, 2019 · 13 comments

Comments

@dmateos
Copy link

dmateos commented May 15, 2019

Hey,

Not sure if this exactly belongs here but just want to flag it for discussion.

Is there anything we need to worry about with this notification from AWS?

https://aws.amazon.com/blogs/compute/upcoming-updates-to-the-aws-lambda-execution-environment/

@dansayo
Copy link
Contributor

dansayo commented May 16, 2019

posted on the Zappa Slack AWS channel

@kikeh
Copy link

kikeh commented May 16, 2019

@dansayo I am not able to see the Zappa Slack, is there any way for me to access or could you share what has been posted? Thanks!

@dmateos
Copy link
Author

dmateos commented May 16, 2019

so to test this now all we need to do in the AWS console is apply the layer arn:aws:lambda:::awslayer:AmazonLinux1803 to current zappa deployed lambdas if im reading the docs right?

@xoelop
Copy link

xoelop commented May 16, 2019

posted on the Zappa Slack AWS channel

I can't also get sign in, how can I request access? Thanks!

@gricey432
Copy link
Contributor

The lambda-packages repo used by zappa is probably where most of the concern would be Miserlou/lambda-packages#102

@gricey432
Copy link
Contributor

@kikeh @xoelop there's a link on the repo homepage to the slack join tool; https://slack.zappa.io/

@kikeh
Copy link

kikeh commented May 17, 2019

@gricey432 Great! Thanks!

@dmateos
Copy link
Author

dmateos commented May 17, 2019

Have done some basic tests on our dev with the new layer and there doesn't seem to really be any dramas so far.

@wagmiwiz
Copy link
Contributor

We tested and this breaks our app as things currently stand. This is due to our reliance on crypography from lambda-packages, which is compiled against current version of Amazon Linux for Lambda. I think we will either have to start including a custom compile, upgrade lambda-packages, or work on this particular enhancement #1861

@suriya
Copy link
Contributor

suriya commented May 21, 2019

Could we accept pull request #1842 so that we can have layers support in Zappa. I was able to use the feature in the pull request and configure

"layers": ["arn:aws:lambda:::awslayer:AmazonLinux1703"],

in my Zappa settings file so that we could defer the OS upgrade.

@dmateos
Copy link
Author

dmateos commented May 22, 2019

You can also just manually set it via the AWS UI from what ive seen, a function update doesnt seem to be getting rid of that.

@wagmiwiz
Copy link
Contributor

FYI, we also found out that if you use Python 3.7 (which means there are no lambda-packages to fall back to, which does happen with python 2.7/3.6 - it will use an older lambda-package of your binary and warn you about it), AND deploy Zappa from Linux, then cryptography works just fine. This is because Zappa in that case doesn't use manylinux, nor lambda packages, and relies on loc virtual env version, which includes the correct abi3 binary. Perhaps lambda-packages should now be made optional in Zappa, PRs welcome.

@suriya
Copy link
Contributor

suriya commented May 22, 2019

@nikbora What about older version of python 2.7 / 3.6, etc.? If we do not use lambda-packages, will the manylinux versions run on the old and new AWS environment?

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

No branches or pull requests

7 participants