Skip to content

Is it possible to get a shared client as handler parameter to reduce the duration of the lambda? #581

Answered by calavera
FalkWoldmann asked this question in Q&A
Discussion options

You must be logged in to vote

See this example that uses the S3 client defined in the main function: https://github.com/calavera/aws-rust-developer-guide-v1/blob/01744e7b319df226f88788171ed884c670b2e2ec/doc_source/lambda.md

I've also updated the DynamoDB example to share the client, it's a better practice: #582

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@FalkWoldmann
Comment options

Answer selected by calavera
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants