Skip to content

Commit

Permalink
docs: stage-level termination protection
Browse files Browse the repository at this point in the history
  • Loading branch information
aripalo committed Sep 15, 2024
1 parent 05c4d02 commit 947d50c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/aws-cdk-lib/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1230,6 +1230,15 @@ const stack = new Stack(app, 'StackName', {});
stack.terminationProtection = true;
```

You can also set termination protection via any parent stage and it will be inherit by all child stacks (unless overridden on stack level):
```ts
const stage = new Stack(app, 'StageName', {
terminationProtection: true,
});
const stack = new Stack(stage, 'StackName', {});
```

By default, termination protection is disabled.

### Description
Expand Down

0 comments on commit 947d50c

Please sign in to comment.