Replies: 2 comments 1 reply
-
Hello @tomHaum, Thanks for reaching out. To clarify the context handling in your Lambda function: Do let me know if you have any questions. Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hello @tomHaum Thanks for explaining.
-Moreover, with respect to your example, the context.Context is only relevant when making the actual DynamoDB API calls, not when setting up the client. Here is an example code :
Thanks, |
Beta Was this translation helpful? Give feedback.
-
Does this need to be a request scoped context?
All the examples i have found in documents show either
context.Background()
orcontext.TODO()
. I feel likecontext.TODO()
would imply that this should be a request scoped context, but the example code just doesnt support actx
parameter.We are utilizing https://github.com/aws/aws-lambda-go and are trying to figure out if the context we pass to the
config.LoadDefaultConfig
call needs to come fromlambda.Start
. Are there any special middleware behind the scene that is set and then utilized that we need to ensure still gets passed?Beta Was this translation helpful? Give feedback.
All reactions