question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

lambda-layer-awscli: doesn't work with newer Python versions

See original GitHub issue

Reproduction 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:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
TheRealAmazonKendracommented, Aug 24, 2022

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.

0reactions
github-actions[bot]commented, Aug 24, 2022

⚠️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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found