From 6c1f9d5bc99b39a7f3c132b8f46f6cea0ca2a0d5 Mon Sep 17 00:00:00 2001 From: Fabricio C Zuardi Date: Tue, 10 Oct 2023 05:48:11 -0300 Subject: [PATCH] doc(README): pass an object to AWSConfig constructor (#68) --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9f091a5..5b95e2a 100644 --- a/README.md +++ b/README.md @@ -37,11 +37,11 @@ import http from 'k6/http' import { AWSConfig, S3Client } from 'https://jslib.k6.io/aws/0.11.0/s3.js' -const awsConfig = new AWSConfig( - __ENV.AWS_REGION, - __ENV.AWS_ACCESS_KEY_ID, - __ENV.AWS_SECRET_ACCESS_KEY -) +const awsConfig = new AWSConfig({ + region: __ENV.AWS_REGION, + accessKeyId: __ENV.AWS_ACCESS_KEY_ID, + secretAccessKey: __ENV.AWS_SECRET_ACCESS_KEY, +}) const s3 = new S3Client(awsConfig) const testBucketName = 'test-jslib-aws'