- Newest
- Most votes
- Most comments
Hello.
An import error is occurring.
What Lambda code are you using?
Judging from the error, there is no module called "strands" and the import failed.
If you can use Docker, I recommend creating a Lambda layer using the steps in the following document.
https://repost.aws/knowledge-center/lambda-layer-simulated-docker
From the error, it evident that there is a module "strands" that is being used. This module is missing. You need to either add a module with this name or correct the typo where it is referring to
answered a year ago
Based on the error message shown in your image, you're experiencing an "Access denied" error with an "UnknownError" message when trying to work with AWS Lambda.
This type of error typically indicates a permissions issue. Here are several potential causes and solutions:
-
IAM Permissions: You may not have the necessary permissions to perform Lambda operations. Ensure your IAM user or role has appropriate Lambda permissions. You might need a policy that includes actions like
lambda:*,logs:*,cloudwatch:*, andiam:PassRole. -
Service Control Policies (SCPs): If your AWS account is managed by AWS Organizations, there might be SCPs in place restricting Lambda operations, even if you have the appropriate IAM policies.
-
Region Check: Verify you're in the correct AWS region where you intend to work with Lambda functions.
-
Service Health: Check the AWS Service Health Dashboard to see if there are any ongoing issues with Lambda or IAM services in your region.
-
Browser Issues: Try accessing Lambda from a different browser, in incognito mode, or from a different device to rule out any local issues.
-
Trust Relationships: If you're using a specific execution role for Lambda, ensure the trust relationship is properly configured to allow Lambda to assume the role.
If you continue to experience this issue after checking these items, contacting AWS Support would be recommended as they can investigate account-specific issues that might be causing this problem.
Sources
Unknow Error when creating a Lambda Function | AWS re:Post
answered a year ago
Relevant content
asked 4 years ago

From the error, it evident that there is a module "strands" that is being used. This module is missing. You need to either add a module with this name or correct the typo where it is referring to