Kenny
05/31/2022, 4:37 PM====================
🚀 Deploy
====================
$ cd /tmp/seed/source
INFO: before_deploy hook not found. You can define it in your build spec.
INFO: Learn more about adding a build spec - seed.run/docs/adding-a-build-spec
INFO: Publishing assets...
3.04 s
INFO: Deploying 4 stacks...
34.12 s
❌ dev-notes-StorageStack: dev-notes-Notes already exists in stack arn:aws:cloudformation:us-east-1:168458715623:stack/dev-notes-storage/8c33eb70-33db-11ec-8990-0e40bd8a36fb
➖ dev-notes-ApiStack: Skipped
➖ dev-notes-AuthStack: Skipped
➖ dev-notes-FrontendStack: Skipped
INFO: Stacks output:
Stack dev-notes-StorageStack
Stack dev-notes-ApiStack
Stack dev-notes-AuthStack
Stack dev-notes-FrontendStack
Frank
dev-notes-Notes
Frank
Kenny
05/31/2022, 5:17 PMKenny
05/31/2022, 5:17 PMKenny
05/31/2022, 5:34 PMconst table = new Table(stack, "Notes", {
fields: {
userId: "string",
noteId: "string",
},
primaryIndex: {
partitionKey: "userId",
sortKey: "noteId",
},
});
to
const table = new Table(stack, "UserNotes", {
fields: {
userId: "string",
noteId: "string",
},
primaryIndex: {
partitionKey: "userId",
sortKey: "noteId",
},
});
It now deploys to dev succesdullyAlfred Brose
06/01/2022, 12:18 PMKenny
06/01/2022, 9:57 PMKenny
06/01/2022, 9:57 PMKenny
06/01/2022, 9:57 PMKenny
06/01/2022, 9:58 PMnpx sst remove
then npx sst remove --stage prod
Frank
sst remove
unless removal policy is set to destroy
https://docs.serverless-stack.com/constructs/App#setting-a-default-removal-policyFrank
Kenny
06/01/2022, 10:03 PMKenny
06/01/2022, 10:25 PMfailed: Export kenny-notes-StorageStack:ExportsOutputRefNotesDataTable81206A2C9BE4093B cannot be deleted as it is in use by kenny-notes-ApiStack
Kenny
06/01/2022, 10:26 PMKenny
06/01/2022, 10:29 PMKenny
06/01/2022, 10:58 PM