serverless-dynamodb-local
serverless-dynamodb-local copied to clipboard
Usage with existing tables
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
?
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.