Commit 09c0061
authored
feat(toolkit-lib): add forceDeployment option to BootstrapOptions (#898)
Fixes #891
This PR adds the `forceDeployment` property to the `BootstrapOptions`
interface to provide parity with the CLI `--force` flag. This allows
programmatic bootstrap operations to force re-bootstrap even when a
bootstrap stack already exists.
## Changes
- Added `forceDeployment?: boolean` property to `BootstrapOptions`
interface
- Added comprehensive test coverage for the new option
- Ensures the force option is properly passed through to SDK calls
## Use Cases
This enables:
- Management account bootstrapping with guaranteed up-to-date bootstrap
stacks
- CI/CD pipelines with clean bootstrap state guarantees
- Multi-account deployment tools with flexible bootstrap behaviors
---
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license1 parent 5bb90cb commit 09c0061
File tree
2 files changed
+30
-0
lines changed- packages/@aws-cdk/toolkit-lib
- lib/actions/bootstrap
- test/actions
2 files changed
+30
-0
lines changedLines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
88 | 94 | | |
89 | 95 | | |
90 | 96 | | |
| |||
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
497 | 521 | | |
498 | 522 | | |
499 | 523 | | |
| |||
0 commit comments