Skip to content

Commit

Permalink
Merge pull request #456 from wellcomecollection/region-everywhere
Browse files Browse the repository at this point in the history
add optional clientConfig
  • Loading branch information
agnesgaroux authored Dec 3, 2024
2 parents 3016d34 + 0258d57 commit 0633ecc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cloudfront/invalidation/lambda/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ const { S3Client, PutObjectCommand } = require("@aws-sdk/client-s3")
const { fromTemporaryCredentials } = require("@aws-sdk/credential-providers")
const fs = require("fs")

const s3Client = new S3Client({
const s3Client = new S3Client({
region: "eu-west-1",
credentials: fromTemporaryCredentials({
params: { RoleArn: roleArn }
})
params: {
RoleArn: roleArn,
},
clientConfig: { region: "eu-west-1" },
}),
});

try {
Expand Down

0 comments on commit 0633ecc

Please sign in to comment.