New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load aws credentials stored in ~/.aws/
using my own profile name
#4341
Comments
Okay I see now, thanks for the info. I would to see this new feature can be easily called like for example repositories {
maven {
url "${internal_s3_url}"
authentication {
awsIm(YOUR_PROFILE_NAME)
}
}
} Or maybe you have another suggestion since I don't really like to see the previous one like And about what you said |
Any updates on this? Very interested in described functionality. |
One solution is to set the
or inline or as an alias in ~/.bashrc or similar, where you can also add some logic based on a config file |
This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. If you're interested in how we try to keep the backlog in a healthy state, please read our blog post on how we refine our backlog. If you feel this is something you could contribute, please have a look at our Contributor Guide. Thank you for your contribution. |
This issue has been automatically closed due to inactivity. If you can reproduce this on a recent version of Gradle or if you have a good use case for this feature, please feel free to reopen the issue with steps to reproduce, a quick explanation of your use case or a high-quality pull request. |
Expected Behavior
I'm trying to load
aws credentials
from default config file~/.aws/
. using this code snippet :And here is my
credential
looks like :I know if I changed the profile
gujarat.santana
todefault
it will load the access_key and secret_key. Now Is it possible not to usedefault
profile and using my own name profile? if Possible, how do I do that ?Current Behavior
Currently I got this error
Unable to load AWS credentials from any provider in the chain
after runninggradle build
.Context
I need to use another profile name instead of using
default
profile since I have many access_key and secret_key in my local. The reason why I don't want to usedefault
is because I would like to make mydefault
profile for my admin user in my aws account and use another profile to for another access and permission.Steps to Reproduce (for bugs)
If you have your S3 bucket in aws and IAM user in aws which has access_key and secret_key then put it in your
~/.aws/credentials
. and load the profile name with your own name notdefault
profile.Your Environment
The text was updated successfully, but these errors were encountered: