Skip to content

Good way to avoid rollbacking DB setup for svc deploy #3515

Answered by efekarakus
toshitanian asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @toshitanian !

The problem is that if App Runner service crashes due to some error and App Runner fails to setup, the Cfn tries to rollback all the stack including DB setup while I want the DB being kept.

😭 I totally understand. I can think of two possible mitigations:

  1. [preferred] Deploy the app runner service and DB addon first with a stable image https://gallery.ecr.aws/nginx/nginx that will guarantee that the stack deployment will succeed, and then make the remaining manifest changes so that the database doesn't get rolled back.
  2. You can use the new --no-rollback flag available in the deploy command: https://aws.github.io/copilot-cli/docs/commands/deploy/, this way the rollback wo…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@toshitanian
Comment options

Answer selected by toshitanian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants