New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access AWS lambda context in wing #6412
Labels
☁️ aws
Related to Amazon Web Services support
✨ enhancement
New feature or request
needs-discussion
Further discussion is needed prior to impl
Comments
eladcon
added
✨ enhancement
New feature or request
needs-discussion
Further discussion is needed prior to impl
labels
May 5, 2024
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();
}); |
This was referenced May 6, 2024
Sounds good, but I'd go with |
mergify bot
pushed a commit
that referenced
this issue
May 21, 2024
Closes #6412 ## Checklist - [x] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/pull_requests#how-are-pull-request-titles-formatted) - [x] Description explains motivation and solution - [x] Tests added (always) - [ ] Docs updated (only required for features) - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing *By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
Congrats! 🚀 This was released in Wing 0.74.2. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
☁️ aws
Related to Amazon Web Services support
✨ enhancement
New feature or request
needs-discussion
Further discussion is needed prior to impl
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
The text was updated successfully, but these errors were encountered: