-
Notifications
You must be signed in to change notification settings - Fork 882
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
DefaultCredentialsProvider is not working for ECS instances #135
Comments
I see the same with DynamoDB. Credentials load from file, but not from EC2 instance profile |
Ditt for S3. Confirmed the instance profile works just fine by using the AWS CLI tools. |
I think the problem is that the ElasticContainerCredentialsProvider checks whether environment variable |
Edit: Looks like my comment is related to issue #120 I'm running into a similar problem. I added some debug code that would try to get the credentials from each provider individually, and compare them to the results of the
It looks like the problem is that
|
Might be fixed in master by 62f2d8e. Did you try master? |
It looks like Any suggestions on how to use the master branch as a dependency in another project? |
You'd have to build a jar from master yourself and drop it on your project's unmanaged dependencies directory. |
@eliaslevy I don't think so, but I think @ffriedrich is right. |
I was testing a simple program which invokes a lambda.
The program is running nomrmally on my pc with aws credentials setup with aws configure,
but when I deploy it to ecs with the right role it doesn't work and this exception is thrown: https://pastebin.com/P23q2By1.
My code:
The text was updated successfully, but these errors were encountered: