Open veloware opened 4 years ago
I was able to get this working using the example in the following repo using serverless.js file rather than serverless.yml https://github.com/hoang-innomizetech/sls-website-example/blob/master/serverless.js
Is this the correct approach?
I have followed the steps for the serverless.js file that is to allow deployments to separate environments.
The following -
Yes, I see the various state files, but when I give my dynamodb table a name in the serverless file, running a deploy for dev, then another deploy for prod will fail with
message: 'Table already exists: posts-table'
Without Serverless components, I could have
posts-table-${opt:stage}
to create aposts-table-dev
andposts-table-prod
.How do I do this with serverless components?