99x / 99x/serverless-dynamodb-local
dbPath property not taking relative path from current directory
- 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
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