Using multiple credentials in AWS SDK for Java 2.x
Oct 4, 2022 · 1 min read · Sometimes within a single application, there is a need to use a few different AWS credentials (e.g. different AWS accounts). One of many ways of accomplishing this is defining multiple profiles in ~/.aws/credentials file, e.g.: [account-one] aws_acce...
Join discussion