Python Forum

Full Version: aws lambda event.get object equivalent
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello Experts,

Am trying to test a python code in the unix server which is currently working in AWS lambda function.

The lambda function gets its input through event with JSON string as given below

{
"sns_arns": [
"arn:aws:sns:us-east-1:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
],
"odate": "2019-12-27"
}

The aws lambda python code gets these values using event.get("sns_arns") and event.get("odate")

How can i pass parameters while am testing from unix shell execution.What is the equivalent of event.get functions.

Need your valuable inputs.

Thanks,
Prem