Recommended way to access cross account access to AWS resources Java SDK #2824
-
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.
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.
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.