Skip to content

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

Merged
iker-barriocanal merged 1 commit into
masterfrom
iker/build/unsupport-awslambda-python2
Nov 5, 2021
Merged

build(craft): Remove Python 2.7 support for AWS Lambda layers#1241
iker-barriocanal merged 1 commit into
masterfrom
iker/build/unsupport-awslambda-python2

Conversation

@iker-barriocanal

Copy link
Copy Markdown
Contributor

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

@rhcarvalho rhcarvalho left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor 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.

2 participants