-
Notifications
You must be signed in to change notification settings - Fork 134
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
UnknownEndpoint: Inaccessible host: localhost' at port
4566'. This service may not be available in the `us-west-2' region.
#242
Comments
If Also check if the |
@rchl I have verified that aws-cli is using the same credentials.
Command used to run dynamodb-admin - After renaming |
I'm having the same issue running with globally installed on Okay I actually fixed mine, I used the docker image standalone and then have that point to the So for example on my compose file here is my endpoint: |
I came here to post a similar issue. I am running dynamodb with localstack, but using dynamodb-admin as a global npm command. Setting DYNAMODB_ENDPOINT to http://127.0.0.1:4566 or http://0.0.0.0:4566 will work. |
I didn't change the endpoint to docker container endpoint, but it just started working for me now. Not sure what was the issue. |
I am trying to use dynamodb-admin to view dynamoDB running in my localstack docker.
I am running
DYNAMO_ENDPOINT=http://localhost:4566 AWS_REGION=us-west-2 AWS_ACCESS_KEY_ID=test-access-key AWS_SECRET_ACCESS_KEY=test-secret-key dynamodb-admin
and http://localhost:8001/ gives error -
UnknownEndpoint: Inaccessible host: `localhost' at port `4566'. This service may not be available in the `us-west-2' region. at Request.ENOTFOUND_ERROR (/usr/local/lib/node_modules/dynamodb-admin/node_modules/aws-sdk/lib/event_listeners.js:529:46) at Request.callListeners (/usr/local/lib/node_modules/dynamodb-admin/node_modules/aws-sdk/lib/sequential_executor.js:106:20) at Request.emit (/usr/local/lib/node_modules/dynamodb-admin/node_modules/aws-sdk/lib/sequential_executor.js:78:10) at Request.emit (/usr/local/lib/node_modules/dynamodb-admin/node_modules/aws-sdk/lib/request.js:686:14) at error (/usr/local/lib/node_modules/dynamodb-admin/node_modules/aws-sdk/lib/event_listeners.js:361:22) at ClientRequest.<anonymous> (/usr/local/lib/node_modules/dynamodb-admin/node_modules/aws-sdk/lib/http/node.js:99:9) at ClientRequest.emit (node:events:520:28) at ClientRequest.emit (node:domain:475:12) at Socket.socketErrorListener (node:_http_client:442:9) at Socket.emit (node:events:520:28)
I have verified using aws-cli that the dynamoDB instance is available at this port in my local.
aws dynamodb list-tables --endpoint-url http://localhost:4566
The text was updated successfully, but these errors were encountered: