-
Notifications
You must be signed in to change notification settings - Fork 2
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
AWS Context not exposed #18
Comments
Sounds like a great idea. I think I would like the property to live on Since the last curveball version So maybe |
Oh yeah I made a WIP PR to get the idea across. Is that what you had in mind? I set the context for now to |
I'm very down with using @types/aws-lamba! I recently worked on https://github.com/curveball/azure-function/ , and did the same there. Makes total sense. |
Great. I will make the PR for that first then. So I can immediately use the existing aws Context interface. |
The default AWS handler has two arguments:
event
, andcontext
.It seems like context is not used in curveball, which is fine. But it would be convenient to have it available on the
ctx.request
.Right now if I want to access the AWS context I have to do this before forwarding the event to Curveball.
Additionally there are internal types for
AwsRequest
andAwsResponse
that are not exposed. I had to type them asany
in the code above.Would you accept PR to:
ctx.request.awsContext
, or other suggestions?AwsRequest
andAwsResponse
The text was updated successfully, but these errors were encountered: