serverless-dynamodb-local icon indicating copy to clipboard operation
serverless-dynamodb-local copied to clipboard

Usage with existing tables

Open schtauffen opened this issue 7 years ago • 1 comments

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?

schtauffen avatar Jan 06 '18 22:01 schtauffen

I've gone back and forth between the two issues, this and #347.

I don't see any resolution to this yet. If you have a solution, could you share it. I need to figure this out as well. We already have existing tables in production, and I don't want new ones created from the serverless.yml file, but I do need to setup those Resources for DynamoDB local.

jordanboston avatar Aug 30 '18 16:08 jordanboston