Python Forum
aws lambda event.get object equivalent
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
aws lambda event.get object equivalent
#1
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  equivalent commands saeed_balk 2 2,687 Sep-23-2018, 05:44 AM
Last Post: saeed_balk

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020