DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

The pain of managing multiple named profiles with AWS-SDK

4 years ago omkarbirade.medium.com
The pain of managing multiple named profiles with AWS-SDK

Summary: This is a summary of an article originally published by the source. Read the full original article here →

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.

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com