[JavaScript] Access S3 Bucket with RoleArn from AWS SDK v3 #6290
Unanswered
rgare-travistrue
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We currently have a React app that uploads files to an S3 bucket directly by using v2 of the AWS SDK. I upgraded the code to use the AWS SDK's more modular design, but I'm getting a
403 Access Denied
error with the v3 version.Here's the original AWS SDK v2 code that worked:
Here's the v3 code that I came up with:
I'm fairly certain that I'm getting that 403 error because the v3 version doesn't provide the
RoleArn
. That said, what's the v3 equivalent of passing theRoleArn
? I tried passing the ARN as thecustomArn
parameters tofromCognitoIdentityPool()
, but it was no luck.Beta Was this translation helpful? Give feedback.
All reactions