lambda-layer-awscli: doesn't work with newer Python versions
See original GitHub issueReproduction Steps
Create a lambda function using Python 3.8 or 3.9 as the runtime, and include this layer. Calling the “aws” cli inside the lambda will throw an error /opt/awscli/bin/python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
.
I’m assuming the “root cause” for this bug is https://github.com/aws-samples/aws-lambda-layer-awscli/issues/5, but it seems to have been fixed there, so maybe the CDK package version uses an older version of that layer?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Using layers with your Lambda function - AWS Documentation
Configuring layers with the console · Open the Functions page of the Lambda console. · Under Additional resources, choose Layers. · Choose the...
Read more >Create AWS Lambda Layers for Python Packages
Create Lambda Layer. now install the packages you want. Here I am installing pandas. You can use requirements.txt as well. Put the correct...
Read more >Building Custom Layers on AWS Lambda | by Israel Aminu
How to build custom Python layers for your serverless application. Many developers face issues when importing custom modules on AWS Lambda, you ...
Read more >My awscli is not working inside the lambda function
But, Even after that you will face a problem that there is some libraries that AWS-CLI is dependent on and must be installed...
Read more >list-layer-versions — AWS CLI 2.9.7 Command Reference
Lists the versions of an Lambda layer . Versions that have been deleted aren't listed. Specify a runtime identifier to list only versions...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This should not be an issue on any recent versions of the CDK. If this is still an issue, please re-open an issue with the version you are using so we can investigate further.
⚠️COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.