Code Monkey home page Code Monkey logo

Comments (3)

rchl avatar rchl commented on May 24, 2024

I don't know docker well enough but is it maybe because of a typo in DYNAMO_ENDPOINT env?

DYNAMO_ENDPOINT=http://localstack:8000

Shouldn't it be http://localhost:8000 ?

from dynamodb-admin.

hpiatkowiak avatar hpiatkowiak commented on May 24, 2024

@rchl Thank you for getting back.

I've resolved it for myself. I have created a custom Dockerfile and install dynamo-db by myself.
The dynamo-db endpoint works also now.

    environment:
      - DYNAMO_ENDPOINT=http://localstack:8000

from dynamodb-admin.

sagarbaver avatar sagarbaver commented on May 24, 2024

FWIW, I got the dynamodb-admin tool to connect with the DynamoDb service running under localstack by binding both the containers to a common network.

version: "3.3"

services:
  localstack:
    image: "localstack/localstack:latest"
    container_name: "localstack"
    ports:
      - "4566-4599:4566-4599"
      - "127.0.0.1:8055:8080"
    environment:
      SERVICES: "dynamodb"
      DEBUG: 1
      PORT_WEB_UI: 8090
      HOST_TMP_FOLDER: ${TMPDIR}
      AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID:-local}
      AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY:-local}
      AWS_DEFAULT_REGION: ${AWS_REGION:-local}
    networks:
      - "local"

  dynamodb-admin:
    image: "aaronshaf/dynamodb-admin:latest"
    container_name: "dynamodb-viewer"
    ports:
      - "8001:8001"
    environment:
      DYNAMO_ENDPOINT: http://localstack:4566
      AWS_REGION: ${AWS_REGION:-local}
      AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID:-local}
      AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY:-local}
    depends_on:
      - "localstack"
    networks:
      - "local"

networks:
  local:
    driver: "bridge"

from dynamodb-admin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.