Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Commit 4b16919

Browse files
authored
Update README.md
1 parent 1cac0e0 commit 4b16919

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ The AWS SDK + a handful of extra convenience methods.
66
// require aws-sdk-extra
77
const aws = require(`@serverless/aws-sdk-extra`)
88

9-
// set credentials, as usual.
10-
aws.config.update({
9+
// initialize any service, as usual.
10+
const s3 = new aws.S3({
1111
credentials: { accessKeyId: 'xxx', secretAccessKey: 'xxx' },
1212
region: 'us-east-1'
1313
})
1414

15-
// initialize any service, as usual.
16-
const s3 = new aws.S3()
17-
1815
// initialize the extra service for more power
19-
const extra = new aws.Extra()
16+
const extra = new aws.Extra({
17+
credentials: { accessKeyId: 'xxx', secretAccessKey: 'xxx' },
18+
region: 'us-east-1'
19+
})
2020

2121
// call some powerful extra methods. More info below.
2222
const certificate = await extra.deployCertificate(params)

0 commit comments

Comments
 (0)