You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have provided the debug output using aws-vault --debug (redacted if necessary)
When running a Java application locally I get the following warning from the AWS SDK:
WARNING: Your profile name includes a 'profile ' prefix. This is considered part of the profile name in the Java SDK, so you will need to include this prefix in your profile name when you reference this profile from your Java code.
May 20, 2020 5:43:41 PM com.amazonaws.auth.profile.internal.BasicProfileConfigLoader loadProfiles
for every profile in my ~/.aws/config file.
This happens regardless of whether AWS-Vault is actually used via aws-vault exec profile-name -- java -jar ... or if it's just ran directly (so without credentials from AWS-Vault).
This suggests that AWS-Vault shouldn't be expecting the profile prefix here if it wants to be fully compatible with the AWS SDKs. This warning is also mentioned in this Stack Overflow post but for an older warning 3 years ago so it sounds like it's been a problem for a while although I hadn't personally noticed it previously and was just flagged by a colleague.
We generate the config for AWS-Vault with all of the profiles for all of our accounts (even if the user doesn't have the necessary IAM permissions to assume them at that time) so we have a lot of these profiles and it creates a lot of noise on startup when people are developing locally.
Removing the profile prefix from the source profile block (that is empty) seems fine for AWS-Vault but if I remove the profile prefix from the target profile I get the following error:
Yeah this looks like it might be just the Java SDK doing something stupid as mentioned in this issue. I think this can probably be closed as an issue on the Java SDK's side as the other SDKs don't do this.
.aws/config
(redacted if necessary)aws-vault --debug
(redacted if necessary)When running a Java application locally I get the following warning from the AWS SDK:
for every profile in my
~/.aws/config
file.This happens regardless of whether AWS-Vault is actually used via
aws-vault exec profile-name -- java -jar ...
or if it's just ran directly (so without credentials from AWS-Vault).This suggests that AWS-Vault shouldn't be expecting the profile prefix here if it wants to be fully compatible with the AWS SDKs. This warning is also mentioned in this Stack Overflow post but for an older warning 3 years ago so it sounds like it's been a problem for a while although I hadn't personally noticed it previously and was just flagged by a colleague.
We generate the config for AWS-Vault with all of the profiles for all of our accounts (even if the user doesn't have the necessary IAM permissions to assume them at that time) so we have a lot of these profiles and it creates a lot of noise on startup when people are developing locally.
Removing the
profile
prefix from the source profile block (that is empty) seems fine for AWS-Vault but if I remove theprofile
prefix from the target profile I get the following error:Adding the profile prefix back fixes things so that it correctly assumes the role indicated in the profile.
The text was updated successfully, but these errors were encountered: