Like many others before me, I’m trying to run an AWS Lambda function and when I try to test it, I get “errorMessage”: “Unable to import module ‘lambda_function'” My Handler is set to lambda_function.lambda_handler, and I indeed have a file named lambda_function.py which contains a function called lambda_handler. Here’s a screenshot as proof: Everything was working fine when I was
Tag: aws-lambda
Adding session attributes in Python for Alexa skills
I have 3 slots (account, dollar_value, recipient_first) within my intent schema for an Alexa skill and I want to save whatever slots are provided by the speaker in the session Attributes. I am using the following methods to set session attributes: However, as you may guess, if I want to save more than one slot as data in sessionAttributes, the
AWS error from Python: No module named lambda_function
I am creating a AWS Lambda python deployment package. I am using one external dependency requests. I installed the external dependency using the AWS documentation. Below is my Python code. Created the Zip the content of the project-dir directory and uploaded to the lambda(Zip the directory content, not the directory). When I am execute the function I am getting the
AWS Lambda function firing twice
I’m using an AWS Lambda function (written in python) to send an email whenever an object is uploaded into a preset S3 bucket. The object is uploaded via the AWS PHP SDK into the S3 bucket and is using a multipart upload. Whenever I test out my code (within the Lambda code editor page) it seems to work fine and
how to put an Item in aws DynamoDb using aws Lambda with python
Using python in AWS Lambda, how do I put/get an item from a DynamoDB table? In Node.js this would be something like: All I need is the python equivalent. Answer Using Boto3 (Latest AWS SDK for python) You import it with Then call the client via Get item example Put item example ‘S’ indicates a String value, ‘N’ is a