Let me tell you the story of how I learned this the hard way. First of let’s understand what are AWS profiles: AWS profiles are a combination of user credentials with their configurations.

This mean AWS SDK thinks(is coded to think) that the profile keyword is a part of the profile name itself.

Considering this, in the ideal case, AWS SDK should throw an exception when you try to create a bean/object of any of the resources on AWS saying credentials not found.

It looks something like this: This makes sure when I say AWS_PROFILE=”profile-name” ./gradlew bootRun it works out of the box with no warnings.

Related Articles