serverless-components / aws-dynamodb

⚡ Easily provision AWS DynamoDB tables using Serverless Components.
https://www.serverless.com
Apache License 2.0
58 stars 11 forks source link

Add prefix to generated table name #4

Closed dodgeblaster closed 5 years ago

eahefnawy commented 5 years ago

Thanks @dodgeblaster ... thinking about it a bit deeper. What is the behavior that you would expect if a user changed the name input? 🤔

dodgeblaster commented 5 years ago

I added a check to see if:

If not, it will go to the 'delete and create' branch of the if statement. It is keeping track of state through this.state. Will that be an issue for CI deploys? I am unfamiliar how state works in a CI context

dodgeblaster commented 5 years ago

@eahefnawy Made a few additional commits. Should be ready to be reviewed now.