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-synthetics: Python Selenium Runtime to support Python 3.9 and above #30137

Closed
2 tasks done
nirmana opened this issue May 10, 2024 · 6 comments · Fixed by #31101 · 4 remaining pull requests
Closed
2 tasks done

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

nirmana opened this issue May 10, 2024 · 6 comments · Fixed by #31101 · 4 remaining pull requests
Labels
@aws-cdk/aws-synthetics Related to Amazon CloudWatch Synthetics effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed. p3

Comments

@nirmana
Copy link

nirmana commented May 10, 2024

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

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.141.0

Environment details (OS name and version, etc.)

Windows

@nirmana nirmana added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels May 10, 2024
@github-actions github-actions bot added the @aws-cdk/aws-synthetics Related to Amazon CloudWatch Synthetics label May 10, 2024
@pahud
Copy link
Contributor

pahud commented May 10, 2024

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

@pahud pahud added p2 effort/small Small work item – less than a day of effort and removed needs-triage This issue or PR still needs to be triaged. labels May 10, 2024
@nirmana
Copy link
Author

nirmana commented May 13, 2024

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 : aws-cloudformation/cloudformation-coverage-roadmap#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
Copy link

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

@pahud
Copy link
Contributor

pahud commented Jul 30, 2024

@fabianf92 CDK is pending on the CFN support.

Please help the CFN team prioritize with 👍 on aws-cloudformation/cloudformation-coverage-roadmap#2039

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

@pahud pahud added the needs-cfn This issue is waiting on changes to CloudFormation before it can be addressed. label Jul 30, 2024
@mergify mergify bot closed this as completed in #31101 Aug 27, 2024
@mergify mergify bot closed this as completed in cc75ded Aug 27, 2024
Copy link

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.

1 similar comment
Copy link

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 github-actions bot locked as resolved and limited conversation to collaborators Aug 27, 2024
xazhao pushed a commit to xazhao/aws-cdk that referenced this issue Sep 12, 2024
### Issue # (if applicable)

Closes aws#30137.

### Reason for this change
Add new runtime.

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



### Description of changes
Add `syn-python-selenium-4.0` for synthetics runtime ENUM.



### Description of how you validated changes
Modify a unit test and an integ test to test the new runtime.



### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.