99x / 99x/serverless-dynamodb-local

Args conflict with serverless offline

Open
#99 1 comment 0 reactions 0 assignees View on GitHub
Hacktitude
Dominant language
JavaScript
Stars
621
Forks
232
PR merge metrics
No merged PRs in 30d

Description

I want to run serverless offline on a port that is not the default. Currently if I run

sls offline

everything is brought up correctly. However if I run

sls offline --port 3541

with the aim of launching the serverless offline API I have written on port 3541, DynamoDB will pick the port arg up as its own and launch on port 3541 instead. It would be great if this conflict could be resolved. I don't know how serverless-dynamodb-local works extremely well, but it would be good if it didn't pick up args when run via sls offline (i.e. all config is picked up only from serverless.yml instead in this case), or if the args could be named in such a way that they do not collide with those for sls offline.

Contributor guide

Open the contributing guide

Research direction

Start by tracing how the plugin handles arguments when invoked through `sls offline`, focusing on the `--port` conflict described in the issue. Confirm the behavior with `sls offline` and `sls offline --port 3541`; done means the offline API uses port 3541 without DynamoDB Local incorrectly adopting that port.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, javascript
Domain
cli, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.