aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.62k stars 3.91k forks source link

aws-synthetics: Python Selenium Runtime to support Python 3.9 and above #30137

Closed nirmana closed 1 month ago

nirmana commented 5 months ago

Describe the feature

AWS Synthetics runtime support for Python 3.9 and above

Use Case

AWS has recently announced the end of life (EOL) for Python 3.8 in AWS Lambda runtimes. Unfortunately, the synthetic canary runtimes have not been updated to support newer Python versions. As a result, the Lambdas generated by synthetic canaries are running on an outdated Python runtime that will soon be obsolete.

AWS Notification on Python 3,8 Runtime the EOL

Starting on October 14, 2024, Lambda will no longer apply security patches and other updates to the Python 3.8 runtime used by Lambda functions, and functions using Python 3.8 will no longer be eligible for technical support. Also, Python 3.8 will no longer be available in the AWS Console, although you can still create and update functions that use Python 3.8 via AWS CloudFormation, the AWS CLI, AWS SAM, or other tools. Starting February 28, 2025, you will no longer be able to create new Lambda functions using the Python 3.8 runtime. Starting March 31, 2025, you will no longer be able to update existing functions using the Python 3.8 runtime.

Proposed Solution

No response

Other Information

No response

Acknowledgements

CDK version used

2.141.0

Environment details (OS name and version, etc.)

Windows

pahud commented 5 months ago

That would be awesome! Feel free to submit your PR and let me know if you need any help. Thank!

nirmana commented 5 months ago

Hi @pahud , I've just realized that the AWS platform does not yet support Python 3.8+ versions. This has to wait till it gets the runtime support and happy to fix it whenever it gets available.

I've already created a feature request here : https://github.com/aws-cloudformation/cloudformation-coverage-roadmap/issues/2039

reference - https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Library_python_selenium.html#CloudWatch_Synthetics_runtimeversion-syn-python-selenium-3.0

fabianf92 commented 2 months ago

Any updates on this? We want to update all our lambda functions to python 3.9+ before EOL in October.

pahud commented 2 months ago

@fabianf92 CDK is pending on the CFN support.

Please help the CFN team prioritize with 👍 on https://github.com/aws-cloudformation/cloudformation-coverage-roadmap/issues/2039

After CFN support that, CDK would be able to include that support shortly.

github-actions[bot] commented 1 month ago

Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one.

github-actions[bot] commented 1 month ago

Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one.