From 18c7ea615373d3908b2dc46b147ef7e901cab4da Mon Sep 17 00:00:00 2001 From: Rico Huijbers Date: Wed, 2 Oct 2024 11:39:19 +0200 Subject: [PATCH] Update docs --- .../resources/cdk-apps/rollback-test-app/app.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/@aws-cdk-testing/cli-integ/resources/cdk-apps/rollback-test-app/app.js b/packages/@aws-cdk-testing/cli-integ/resources/cdk-apps/rollback-test-app/app.js index 35ba19dd5ca38..419e30898c9bf 100644 --- a/packages/@aws-cdk-testing/cli-integ/resources/cdk-apps/rollback-test-app/app.js +++ b/packages/@aws-cdk-testing/cli-integ/resources/cdk-apps/rollback-test-app/app.js @@ -8,19 +8,20 @@ const cr = require('aws-cdk-lib/custom-resources'); * It contains resources r1 and r2, where r1 gets deployed first. * * - PHASE = 1: both resources deploy regularly. - * - PHASE = 2: r1 gets updated, r2 will fail to update, and r1 will fail its rollback. + * - PHASE = 2a: r1 gets updated, r2 will fail to update + * - PHASE = 2b: r1 gets updated, r2 will fail to update, and r1 will fail its rollback. * * To exercise this app: * * ``` * env PHASE=1 npx cdk deploy - * env PHASE=2 npx cdk deploy --no-rollback + * env PHASE=2b npx cdk deploy --no-rollback * # This will leave the stack in UPDATE_FAILED * - * env PHASE=2 npx cdk rollback + * env PHASE=2b npx cdk rollback * # This will start a rollback that will fail because r1 fails its rollabck * - * env PHASE=2 npx cdk rollback --force + * env PHASE=2b npx cdk rollback --force * # This will retry the rollabck and skip r1 * ``` */