wing
wing copied to clipboard
Access AWS lambda context in wing
Use Case
I want to access some information that is available on the context variable passed to the handler (E.g. access function name or request id in AWS)
Proposed Solution
No response
Implementation Notes
No response
Component
No response
Community Notes
- Please vote by adding a 👍 reaction to the issue to help us prioritize.
- If you are interested to work on this issue, please leave a comment.
- If this issue is labeled needs-discussion, it means the spec has not been finalized yet. Please reach out on the #dev channel in the Wing Slack.
Maybe we can start by exposing the info through an API like
bring aws;
new cloud.Function(inflight (msg: str) => {
let ctx = aws.context; // or aws.getContext();
});
Sounds good, but I'd go with aws.Function.context()
to associate with Lambda functions
Congrats! :rocket: This was released in Wing 0.74.2.