Search code examples
amazon-web-servicesshellwebamazon-dynamodblocalhost

Dynamodb local web shell does not load


I am running DynamoDB locally using the instructions here. To remove potential docker networking issues I am using the "Download Locally" version of the instructions. Before running dynamo locally I run aws configure to set some fake values for AWS access, secret, and region, and here is the output:

$ aws configure
AWS Access Key ID [****************fake]:
AWS Secret Access Key [****************ake2]:
Default region name [local]:
Default output format [json]:

here is the output of running dynamo locally:

$ java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb
Initializing DynamoDB Local with the following configuration:
Port:   8000
InMemory:   false
DbPath: null
SharedDb:   true
shouldDelayTransientStatuses:   false
CorsParams: *

I can confirm that the DynamoDB is running locally successfully by listing tables using aws cli

$ aws dynamodb list-tables --endpoint-url http://localhost:8000
{
    "TableNames": []
}

but when I visit http://localhost:8000/shell in my browser, this is the error I get and the page does not load. enter image description here

I tried running curl on the shell to see if I can get a more useful error message:

$ curl http://localhost:8000/shell
{
"__type":"com.amazonaws.dynamodb.v20120810#MissingAuthenticationToken",
"Message":"Request must contain either a valid (registered) AWS access key ID or X.509 certificate."}%

I tried looking up the error above, but I don't have much choice in doing setup when running the shell merely in the browser. Any help is appreciated on how I can run the Dynamodb javascript web shell with this setting.

Software versions:

aws cli: aws-cli/2.4.7 Python/3.9.9 Darwin/20.6.0 source/x86_64 prompt/off

OS: MacOS Big Sur 11.6.2 (20G314)


Solution

  • DynamoDB Local Web Shell was deprecated with version 1.16.X and is not available any longer from 1.17.X to latest. There are no immediate plans for a new Web Shell to be introduced.

    You can download an old version of DynamoDB Local < 1.17.X should you wish to use the Web Shell.

    Available versions:

    aws s3 ls s3://dynamodb-local-frankfurt/
    

    Download most recent working version with Web Shell:

    aws s3 ls s3://dynamodb-local-frankfurt/dynamodb_local_2021-04-27.tar.gz .
    

    The next release of DynamoDB Local will have an updated README indicating its deprecation