Skip to content

Commit 46717f0

Browse files
authored
Document how to unstuck Cloudformation deployments (#2601)
Sometimes a deployment fails, whch causes a rollback. If the rollback fails, the environment can get stuck and no deploys are possible anymore. This documents a workaround to fix deployments.
2 parents 3d4d731 + f0ba05a commit 46717f0

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

docs/aws-copilot.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,24 @@ bash script/aws-account-setup.sh
282282
This can occur if your docker client has some old state left in it. Logging out
283283
seems to fix it:
284284

285-
```
285+
```bash
286286
docker logout https://393416225559.dkr.ecr.eu-west-2.amazonaws.com
287287
```
288+
289+
### Deployment error: `stack is in UPDATE_ROLLBACK_FAILED state and can not be updated`
290+
291+
This can happen after a failed deployment, where Cloudformation attempts to
292+
rollback the deploy but gets stuck in a failed state.
293+
294+
You can manually continue the rollback, skipping failed resources:
295+
296+
```bash
297+
aws cloudformation continue-update-rollback \
298+
--stack-name mavis-production-webapp \
299+
--resources-to-skip "Service" # Must be a resource in UPDATE_FAILED state
300+
```
301+
302+
More information:
303+
304+
- https://github.com/aws/copilot-cli/issues/4333
305+
- https://repost.aws/knowledge-center/cloudformation-update-rollback-failed

0 commit comments

Comments
 (0)