99x / 99x/serverless-dynamodb-local

dbPath property not taking relative path from current directory

Open
#161 9 comments 8 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
621
Forks
232
PR merge metrics
No merged PRs in 30d

Description

I am running dynamodb with local env.
I have specified below configuration in serverless.yml.
dynamodb:
start:
port: 8000
dbPath: .\tmp
migrate: true
migration:
dir: offline/migrations
I expected to get db file created under tmp directory created in local project. But it gave error.

**Invalid directory for database creation.Serverless:**

Contributor guide

Open the contributing guide

Research direction

Start with the dbPath handling for the dynamodb.start configuration shown in serverless.yml, and trace how the plugin validates the configured directory. Reproduce the failure with a relative path such as .\tmp; done means the database file is created under the project’s local tmp directory without the invalid-directory error.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, javascript
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.