Ross Coundon
11/02/2021, 4:45 PMReplacement type updates not supported on stack with disable-rollback.
We had to rename a table in the stack as its definition had changed, after doing so we get this error. What's the recommendation to deal with this?Frank
thdxr
11/02/2021, 4:47 PM--rollback=true
Frank
Ross Coundon
11/02/2021, 4:48 PMRoss Coundon
11/02/2021, 4:48 PMthdxr
11/02/2021, 4:48 PMRoss Coundon
11/02/2021, 4:52 PMRoss Coundon
11/02/2021, 4:54 PMThis stack is currently in a non-terminal [UPDATE_FAILED] state. To update the stack from this state, please use the disable-rollback parameter with update-stack API. To rollback to the last known good state, use the rollback-stack API
I don't see the option in the console to apply a rollback, which seems odd. Is there a way to force this via seedRoss Coundon
11/02/2021, 4:54 PMFrank
Mehmet Ali SARAÇ
11/02/2021, 5:17 PMCloudFormation cannot update a stack when a custom-named resource requires replacing. Rename *********** and update the stack again.
Mehmet Ali SARAÇ
11/02/2021, 5:18 PMRoss Coundon
11/02/2021, 5:19 PMRoss Coundon
11/02/2021, 5:20 PMFrank
Ross Coundon
11/02/2021, 5:23 PMFrank
Mehmet Ali SARAÇ
11/02/2021, 5:27 PMMehmet Ali SARAÇ
11/02/2021, 5:27 PMthdxr
11/02/2021, 5:29 PMMehmet Ali SARAÇ
11/02/2021, 5:30 PMglobalIndexes: {
isApprovedIndex: {partitionKey: "is_approved", sortKey: "timestamp"},
fromIndex: {partitionKey: "from"} // this one is new
}
Mehmet Ali SARAÇ
11/02/2021, 5:30 PMRoss Coundon
11/02/2021, 5:31 PMReplacement type updates not supported on stack with disable-rollback.
Mehmet Ali SARAÇ
11/02/2021, 5:31 PMthdxr
11/02/2021, 5:34 PMthdxr
11/02/2021, 5:34 PMMehmet Ali SARAÇ
11/02/2021, 5:36 PMReplacement type updates not supported on stack with disable-rollback.
Ross Coundon
11/02/2021, 5:36 PMthdxr
11/02/2021, 5:43 PMRoss Coundon
11/02/2021, 5:45 PM--rolback-true
gives
This stack is currently in a non-terminal [UPDATE_FAILED] state. To update the stack from this state, please use the disable-rollback parameter with update-stack API. To rollback to the last known good state, use the rollback-stack API
Ross Coundon
11/02/2021, 5:45 PMRoss Coundon
11/02/2021, 5:46 PMthdxr
11/02/2021, 5:47 PMFrank
Mehmet Ali SARAÇ
11/02/2021, 7:05 PMRoss Coundon
11/02/2021, 7:14 PMRoss Coundon
11/02/2021, 7:33 PMReplacement type updates not supported on stack with disable-rollback.
Ross Coundon
11/02/2021, 8:00 PMrollback=false
and then rollback=true
which both failed but at least then the console allowed me to initiate a rollback which succeeded and left the stack in state UPDATE_ROLLBACK_COMPLETE
So, now I'm attempting to deploy the old code via Seed...Ross Coundon
11/02/2021, 8:03 PMStatus: Failed
Error: Internal Failure
Ross Coundon
11/02/2021, 8:03 PMRoss Coundon
11/02/2021, 8:08 PMthdxr
11/02/2021, 8:27 PMRoss Coundon
11/02/2021, 8:30 PMRoss Coundon
11/02/2021, 8:31 PMRoss Coundon
11/02/2021, 10:20 PMsst remove
from my own machine followed by a seed deploy which (after removing log retention settings) worked.Ross Coundon
11/02/2021, 11:07 PMthdxr
11/02/2021, 11:49 PMMike McCall
11/14/2021, 3:31 PMMike McCall
11/14/2021, 3:45 PMThis stack is currently in a non-terminal [UPDATE_FAILED] state. To update the stack from this state, please use the disable-rollback parameter with update-stack API.
Mike McCall
11/14/2021, 3:45 PMMike McCall
11/14/2021, 3:47 PMRoss Coundon
11/14/2021, 4:03 PMFrank
… subsequent deployments do not detect changes.I think that might be a bug with SST. I’m going to put in a change today https://github.com/serverless-stack/serverless-stack/issues/1037
Frank
Joe Kendal
11/25/2021, 11:33 AMFrank
Frank
sst start
uses --rollback=true
by default now. And you can set it to false
to override it.