99x / 99x/serverless-dynamodb-local
Usage with existing tables
- Dominant language
- JavaScript
- Stars
- 621
- Forks
- 232
- PR merge metrics
- No merged PRs in 30d
Description
Hello, I find the need to set my provider.iamRoleStatements.Resource to a pre-existing arn.
However, I would still like to define the resource within my serverless.yml in order to facilitate local development with serverless-offline.
When I have these defined I can no longer deploy via sls deploy:
> An error occurred: UsersDynamoDBTable - users-table-dev already exists in stack [...]
Is there a way to define my dynamodb resources so only serverless-dynamodb-local will use them, and not `sls deploy`?
Contributor guide
Research direction
Start with the serverless.yml resource definitions and the serverless-dynamodb-local integration, then compare how serverless-offline and sls deploy process them. Determine whether local development can use the existing DynamoDB definitions without attempting to create them during deployment, and verify both workflows against the reported existing-table error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws
- Domain
- database, devops
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100