Skip to content

Commit

Permalink
feat(credential-providers): update example code in readme
Browse files Browse the repository at this point in the history
Co-authored-by: Trivikram Kamat <[email protected]>
  • Loading branch information
kuhe and trivikr authored Aug 12, 2024
1 parent cc017db commit a135448
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/credential-providers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -797,9 +797,7 @@ import { S3 } from "@aws-sdk/client-s3";
// and custom async functions returning credential objects.
new S3({
credentials: chain(fromEnv(), fromIni(), async () => {
return {
...myCredentialsFromSomewhereElse,
};
return myCredentialsFromSomewhereElse;
}),
});

Expand Down

0 comments on commit a135448

Please sign in to comment.