1 Answer
- Newest
- Most votes
- Most comments
0
Hi,
Have a look at the Java default credentials chain to see all possible ways to supply credentials to the AWS Java SDK: https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/credentials-chain.html
I personally use the env variables AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
to avoid storing my credentials in my source code, which is a bad practice.
Best,
Didier
Relevant content
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 6 days ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago