Skip to content

client-s3 usage with SvelteKit #5098

Answered by ZachSaucier
ZachSaucier asked this question in Q&A
Discussion options

You must be logged in to vote

S3/S3Client allow a credentials parameter to be passed in which I didn't know about until now:

const s3 = new S3Client({
  region: AWS_REGION,
  credentials: {
    accessKeyId: AWS_ACCESS_KEY_ID,
    secretAccessKey: AWS_SECRET_ACCESS_KEY,
  }
});

See here for a full example.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ZachSaucier
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ZachSaucier
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
response-requested Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days.
2 participants