Where is the payload in the "main" of a top-level statement Lambda function #1239
Replies: 1 comment
-
@hounddog22030 Good afternoon. I'm unsure what you meant by payload in Please refer
what @normj is suggesting in discussion is that you could define your own environment variable and then check that environment variable to decide which handler to register with the Lambda bootstrap. We are not sure if it fits your use case though. Thanks, |
Beta Was this translation helpful? Give feedback.
-
Where is the payload in the "main" of a top-level statement Lambda function?
Indirectly related to this discussion:
Where is the payload in the main of a TLS Lambda function.
I have checked
args[]
but there is nothing there.I would like to be able to read some of the payload before deciding how to setup my handler. Specifically, I need to get the S3 Arn of an assembly and bring it down. In my function, I have the S3 arn as element of the JSON payload (an Lambda function called by a Cloudformation::CustomResource).
I would like to bring that assembly down before setting up my handler or bootstrapping.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions