-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Description
Cart Service (carts-db) doesn’t auto-create DynamoDB table in docker-compose or Kubernetes manifests
Issue Description
When running the Cart service with the provided docker-compose.yaml or kubernetes.yaml manifests from this repo, the associated DynamoDB Local container (carts-db) starts successfully, but the required Items table is not created automatically.
The Cart service logs confirm it expects the Items table, but reports it as missing:
cart-1 | 2025-09-20T10:55:04.645Z INFO 1 --- [ main] c.a.s.c.c.DynamoDBConfiguration : DynamoDB table: Items
cart-1 | 2025-09-20T10:55:04.721Z INFO 1 --- [ main] c.a.s.c.c.DynamoDBConfiguration : DynamoDB endpoint: http://carts-db:8000
cart-1 | 2025-09-20T10:55:10.411Z WARN 1 --- [ main] c.a.s.c.s.DynamoDBCartService : Dynamo table not found
Expected Behavior
The Cart service should either:
- Auto-create the
Itemstable (whenRETAIL_CART_PERSISTENCE_DYNAMODB_CREATE_TABLE=trueis set), or - Provide clear instructions in the documentation to manually create the
Itemstable before starting the service.
Actual Behavior
carts-dbcontainer starts successfully.- Cart service connects to DynamoDB Local but the
Itemstable does not exist, causing warnings and failed persistence.
Steps to Reproduce
- Clone the repo and run
docker compose up(or apply the provided Kubernetes manifests). - Wait for
cartandcarts-dbto become healthy. - Check Cart service logs:
docker compose up -d
docker compose logs -f cartYou will see:
cart-1 | 2025-09-20T10:55:10.411Z WARN 1 --- [ main] c.a.s.c.s.DynamoDBCartService : Dynamo table not found
Suggestion
- Ensure the
Itemstable is created automatically at startup when using the default manifests, or - Update documentation with explicit instructions on creating the table manually.
Metadata
Metadata
Assignees
Labels
No labels