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

build(craft): Remove Python 2.7 support for AWS Lambda layers #1241

Merged
merged 1 commit into from Nov 5, 2021

Conversation

iker-barriocanal
Copy link
Member

From AWS docs:

End of support for the Python 2.7 runtime started on July 15, 2021.

Since Python 2.7 is no longer supported, there's no point in having it as a compatible runtime for the created layers. Removing this version means new layers created by Craft on releases won't have it as a compatible runtime; so it doesn't affect existing layers.

@iker-barriocanal iker-barriocanal requested a review from a team November 4, 2021 16:20
@iker-barriocanal iker-barriocanal self-assigned this Nov 4, 2021
@iker-barriocanal iker-barriocanal requested review from rhcarvalho and vladanpaunovic and removed request for a team November 4, 2021 16:20
Copy link
Contributor

@rhcarvalho rhcarvalho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solid 👍

Note that end of support Phase 2 is November 22nd, but if the timelines there are correct, since July one cannot create new functions with 2.7, but can change existing functions. I think we're safe.
https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html

Also note that existing Python 2.7 lambdas will continue to run indefinitely. But IIUC one would not be able to change it to use a new lambda layer for Sentry.
https://aws.amazon.com/blogs/compute/announcing-end-of-support-for-python-2-7-in-aws-lambda/

Need to check the failed CI tests.

@iker-barriocanal
Copy link
Member Author

Good context.

@iker-barriocanal iker-barriocanal merged commit ed4ba68 into master Nov 5, 2021
@iker-barriocanal iker-barriocanal deleted the iker/build/unsupport-awslambda-python2 branch November 5, 2021 09:04
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

Successfully merging this pull request may close these issues.

None yet

2 participants