I looked through the forum and didn’t see a topic on this. It appears that if you have a dynamoDB resource where you are creating tables and indexes, you can deploy once. If you need to make an update, you need to first remove and then deploy. This is fine in dev (I guess) but wouldn’t work in prod. So,
Is there a way to deploy changes (adding new functions and api endpoints) without first removing everything, in this scenario?
If not, what is the recommended way to deploy updates (adding new functions and api endpoints) when the dynamoDB tables are already created and filled with data?
What is the recommended way to modify dynamoDB tables if they have already been deployed and filled with data?
Before I put in the GSI stuff, sls deploy would fail with “table already exists”. Now with the GSI stuff, it fails saying “GSI already exists”. I am not a CF expert (or fan), so I am sure there is something I am doing wrong.
well, I am not sure what to say. I just tried it again, and it worked. I changed nothing in serverless.yml for the resources, but I added a new function with api endpoint and it worked without first removing. I must have tried 4 or 5 times yesterday and it never worked.
Trying to create two dynamoDB tables under resources in serverless.yml. I get an error stating Cannot read property ‘LogicalResourceId’ of null. Any idea what might be the problem ?