@codedrifters/configulator 0.0.441 → 0.0.442
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.mts +16 -8
- package/lib/index.d.ts +16 -8
- package/lib/index.js +18 -9
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +18 -9
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -43017,6 +43017,15 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends Component25 {
|
|
|
43017
43017
|
* blocker rather than a cosmetic one: the apply requires a successful plan
|
|
43018
43018
|
* run, so one from-scratch target blocks applying any plan for the stage.
|
|
43019
43019
|
*
|
|
43020
|
+
* A genuinely absent stack fails the same way for a different reason:
|
|
43021
|
+
* `CreateChangeSet` resolves `AWS::SSM::Parameter::Value` template
|
|
43022
|
+
* parameters when the change set is created, so a never-deployed stack that
|
|
43023
|
+
* consumes parameters written by other not-yet-deployed stacks cannot get a
|
|
43024
|
+
* `CREATE` change set at all (`Unable to fetch parameters [...] from
|
|
43025
|
+
* parameter store for this account`). That deadlocks the first deployment of
|
|
43026
|
+
* an entire stage: no green plan without the upstream stacks, no upstream
|
|
43027
|
+
* stacks without an apply, no apply without a green plan.
|
|
43028
|
+
*
|
|
43020
43029
|
* `cdk list --long --json` resolves the pattern to CloudFormation stack names
|
|
43021
43030
|
* out of the built assembly's manifest — no synth, no cloud call — and each
|
|
43022
43031
|
* name costs one `describe-stacks`, which needs only
|
|
@@ -43024,17 +43033,16 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends Component25 {
|
|
|
43024
43033
|
* already carries it. A `cdk list` that fails contributes no names, leaving
|
|
43025
43034
|
* the diff to run exactly as it does today.
|
|
43026
43035
|
*
|
|
43027
|
-
*
|
|
43028
|
-
*
|
|
43029
|
-
*
|
|
43030
|
-
*
|
|
43031
|
-
*
|
|
43032
|
-
*
|
|
43033
|
-
* stack built from scratch is an add.
|
|
43036
|
+
* Both from-scratch arms therefore move the method, and only to `template`,
|
|
43037
|
+
* never to `auto`: `auto` would swallow a real permission failure and
|
|
43038
|
+
* present a degraded diff as authoritative, which is what an explicit
|
|
43039
|
+
* `change-set` pin exists to prevent. `template` over-reporting replacements
|
|
43040
|
+
* is vacuous here, because every resource in a stack built from scratch is
|
|
43041
|
+
* an add. A stack in any other status keeps the configured method.
|
|
43034
43042
|
*
|
|
43035
43043
|
* The method is per invocation, not per stack — `cdk diff` diffs everything
|
|
43036
43044
|
* its pattern matches in one pass. A pattern matching several stacks where
|
|
43037
|
-
* only one is
|
|
43045
|
+
* only one is from-scratch therefore diffs all of them with `template`, and
|
|
43038
43046
|
* the banner names the stack that caused it.
|
|
43039
43047
|
*/
|
|
43040
43048
|
this.diffProbeLines = (target, outputFile) => {
|
|
@@ -43056,7 +43064,8 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends Component25 {
|
|
|
43056
43064
|
' status=$(aws cloudformation describe-stacks --stack-name "$stack" --query "Stacks[0].StackStatus" --output text 2>/dev/null || echo NOT_FOUND)',
|
|
43057
43065
|
' case "$status" in',
|
|
43058
43066
|
" NOT_FOUND|REVIEW_IN_PROGRESS)",
|
|
43059
|
-
`
|
|
43067
|
+
` method=${CDK_DIFF_METHOD.Template}`,
|
|
43068
|
+
` echo "${DIFF_NEW_STACK_MARKER} \u2014 $stack does not exist yet, so this target will be created from scratch. Diffing it with --method=${CDK_DIFF_METHOD.Template}." | tee -a ${outputFile}`,
|
|
43060
43069
|
" ;;",
|
|
43061
43070
|
" ROLLBACK_COMPLETE|ROLLBACK_FAILED)",
|
|
43062
43071
|
` method=${CDK_DIFF_METHOD.Template}`,
|