Mar-26-2020, 01:43 AM
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
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