Skip to content

Conversation

@greenwoodcm
Copy link
Contributor

@greenwoodcm greenwoodcm commented Mar 14, 2023

adds an example for a basic Lambda function that calls S3. this demonstrates the best practice of instantiating an SDK client during function initialization (main method) and reusing that client across multiple invokes.

Issue #, if available:
#616

By submitting this pull request

  • I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • I confirm that I've made a best effort attempt to update all relevant documentation.

@bnusunny
Copy link
Contributor

Could you add a simple README file?

@timClicks
Copy link
Contributor

Is it possible to add a README to the example to make it obvious that arguments need to be passed when calling it?

// This example requires the following input to succeed:
// { "bucket": "bucket-to-list" }

(I know that the other examples don't have thorough READMEs, but it would be worthwhile practice to start)

@greenwoodcm
Copy link
Contributor Author

added a README in the latest

adds an example for a basic Lambda function that calls S3.  this
demonstrates the best practice of instantiating an SDK client during
function initialization (main method) and reusing that client across
multiple invokes.
@bnusunny bnusunny merged commit 9cea0e3 into awslabs:main Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants