Recommended way to access cross account access to AWS resources Java SDK #2824
Answered
by
debora-ito
Shlok-Chaurasia
asked this question in
Q&A
-
Have a usecase where there is need to access cross account DynamoDB, S3 access in Account A from lambda/ECS in Account B. With AWS Java SDK2 what is the recommended Credential Provider to use for this use case?
|
Beta Was this translation helpful? Give feedback.
Answered by
debora-ito
Sep 7, 2022
Replies: 1 comment
-
Hi @Shlok-Chaurasia apologies for the delay in response here. The recommended way is to use STSAssumeRoleSessionCredentialsProvider. The default credential provider chain won't work in this case, the STSAssumeRole is not in the chain. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
yasminetalby
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @Shlok-Chaurasia apologies for the delay in response here.
The recommended way is to use STSAssumeRoleSessionCredentialsProvider.
The default credential provider chain won't work in this case, the STSAssumeRole is not in the chain.