dynamo-local-admin-docker
dynamo-local-admin-docker copied to clipboard
CredentialsError in web UI
first off, thanks for this project, it has been very useful to me!
recently, i've started seeing the below error when I open the web admin. Do you know what I might be doing wrong?
{
"error": {
"message": "Missing credentials in config",
"code": "CredentialsError",
"time": "2017-08-12T14:27:01.645Z",
"retryable": true,
"originalError": {
"message": "Could not load credentials from any providers",
"code": "CredentialsError",
"time": "2017-08-12T14:27:01.645Z",
"retryable": true,
"originalError": {
"message": "Connection timed out after 1000ms",
"code": "TimeoutError",
"time": "2017-08-12T14:27:01.644Z",
"retryable": true
}
}
}
}
also this one:
{
"error": {
"message": "Missing credentials in config",
"code": "CredentialsError",
"time": "2017-08-12T14:34:28.910Z",
"originalError": {
"message": "Could not load credentials from any providers",
"code": "CredentialsError",
"time": "2017-08-12T14:34:28.910Z",
"originalError": {
"code": "ECONNRESET",
"message": "socket hang up"
}
}
}
}
yes, i'm seeing this as well.. any advice on how to set the credentials?
me2, any advice?
ok, i have a temporary solution for this, until the owners get back to us. The gist is to add dummy credentials to /root/.aws/credentials
the fast way: use this fork and run docker-compose up
: https://github.com/mvayngrib/dynamo-local-admin-docker
the slow way: use this branch on the same fork and build your own image with credentials built in
happy to submit a PR from either solution, depending on the owners' preference. I haven't tested the slow one, as I had trouble building the image, but the first one definitely works
I still need to troubleshoot this, but in the meantime if someone wants to look in the commit log of https://github.com/aaronshaf/dynamodb-admin they may find the breaking commit there.
You can also launch the container passing the AWS credentials as environment variables as well: docker run -p 8000:8000 -it -e AWS_ACCESS_KEY_ID=key -e AWS_SECRET_ACCESS_KEY=secret --rm instructure/dynamo-local-admin
That worked for me.
This has been fixed in instructure/dockerfiles@f8e32d9e5ebffb3a7c09b988ceb70b5365a82963