Skip to content

Commit

Permalink
Support aws session token in sms and kms clients (#87)
Browse files Browse the repository at this point in the history
* pass aws session token to ssm and kms clients

* bump the version to 0.11.1

* npm run webpack
  • Loading branch information
jing-emma authored Jan 4, 2024
1 parent 2302ff8 commit 38e71ff
Show file tree
Hide file tree
Showing 26 changed files with 929 additions and 720 deletions.
2 changes: 1 addition & 1 deletion build/aws.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/aws.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/event-bridge.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/event-bridge.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/kinesis.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/kinesis.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/kms.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/kms.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/lambda.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/lambda.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/s3.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/s3.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/secrets-manager.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/secrets-manager.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/signature.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/signature.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/sqs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/sqs.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/ssm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/ssm.js.map

Large diffs are not rendered by default.

1,601 changes: 904 additions & 697 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "k6-jslib-aws",
"repository": "https://github.com/grafana/k6-jslib-aws",
"version": "0.11.0",
"version": "0.11.1",
"description": "Create a distribution file for the aws jslib",
"main": "src/index.js",
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions src/internal/kms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export class KMSClient extends AWSClient {
credentials: {
accessKeyId: awsConfig.accessKeyId,
secretAccessKey: awsConfig.secretAccessKey,
sessionToken: awsConfig.sessionToken,
},
uriEscapePath: true,
applyChecksum: false,
Expand Down
1 change: 1 addition & 0 deletions src/internal/ssm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export class SystemsManagerClient extends AWSClient {
credentials: {
accessKeyId: awsConfig.accessKeyId,
secretAccessKey: awsConfig.secretAccessKey,
sessionToken: awsConfig.sessionToken,
},
uriEscapePath: true,
applyChecksum: false,
Expand Down

0 comments on commit 38e71ff

Please sign in to comment.