@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.d.mts
CHANGED
|
@@ -12910,6 +12910,15 @@ declare class AwsDeployWorkflow extends Component {
|
|
|
12910
12910
|
* blocker rather than a cosmetic one: the apply requires a successful plan
|
|
12911
12911
|
* run, so one from-scratch target blocks applying any plan for the stage.
|
|
12912
12912
|
*
|
|
12913
|
+
* A genuinely absent stack fails the same way for a different reason:
|
|
12914
|
+
* `CreateChangeSet` resolves `AWS::SSM::Parameter::Value` template
|
|
12915
|
+
* parameters when the change set is created, so a never-deployed stack that
|
|
12916
|
+
* consumes parameters written by other not-yet-deployed stacks cannot get a
|
|
12917
|
+
* `CREATE` change set at all (`Unable to fetch parameters [...] from
|
|
12918
|
+
* parameter store for this account`). That deadlocks the first deployment of
|
|
12919
|
+
* an entire stage: no green plan without the upstream stacks, no upstream
|
|
12920
|
+
* stacks without an apply, no apply without a green plan.
|
|
12921
|
+
*
|
|
12913
12922
|
* `cdk list --long --json` resolves the pattern to CloudFormation stack names
|
|
12914
12923
|
* out of the built assembly's manifest — no synth, no cloud call — and each
|
|
12915
12924
|
* name costs one `describe-stacks`, which needs only
|
|
@@ -12917,17 +12926,16 @@ declare class AwsDeployWorkflow extends Component {
|
|
|
12917
12926
|
* already carries it. A `cdk list` that fails contributes no names, leaving
|
|
12918
12927
|
* the diff to run exactly as it does today.
|
|
12919
12928
|
*
|
|
12920
|
-
*
|
|
12921
|
-
*
|
|
12922
|
-
*
|
|
12923
|
-
*
|
|
12924
|
-
*
|
|
12925
|
-
*
|
|
12926
|
-
* stack built from scratch is an add.
|
|
12929
|
+
* Both from-scratch arms therefore move the method, and only to `template`,
|
|
12930
|
+
* never to `auto`: `auto` would swallow a real permission failure and
|
|
12931
|
+
* present a degraded diff as authoritative, which is what an explicit
|
|
12932
|
+
* `change-set` pin exists to prevent. `template` over-reporting replacements
|
|
12933
|
+
* is vacuous here, because every resource in a stack built from scratch is
|
|
12934
|
+
* an add. A stack in any other status keeps the configured method.
|
|
12927
12935
|
*
|
|
12928
12936
|
* The method is per invocation, not per stack — `cdk diff` diffs everything
|
|
12929
12937
|
* its pattern matches in one pass. A pattern matching several stacks where
|
|
12930
|
-
* only one is
|
|
12938
|
+
* only one is from-scratch therefore diffs all of them with `template`, and
|
|
12931
12939
|
* the banner names the stack that caused it.
|
|
12932
12940
|
*/
|
|
12933
12941
|
private diffProbeLines;
|
package/lib/index.d.ts
CHANGED
|
@@ -12959,6 +12959,15 @@ declare class AwsDeployWorkflow extends Component {
|
|
|
12959
12959
|
* blocker rather than a cosmetic one: the apply requires a successful plan
|
|
12960
12960
|
* run, so one from-scratch target blocks applying any plan for the stage.
|
|
12961
12961
|
*
|
|
12962
|
+
* A genuinely absent stack fails the same way for a different reason:
|
|
12963
|
+
* `CreateChangeSet` resolves `AWS::SSM::Parameter::Value` template
|
|
12964
|
+
* parameters when the change set is created, so a never-deployed stack that
|
|
12965
|
+
* consumes parameters written by other not-yet-deployed stacks cannot get a
|
|
12966
|
+
* `CREATE` change set at all (`Unable to fetch parameters [...] from
|
|
12967
|
+
* parameter store for this account`). That deadlocks the first deployment of
|
|
12968
|
+
* an entire stage: no green plan without the upstream stacks, no upstream
|
|
12969
|
+
* stacks without an apply, no apply without a green plan.
|
|
12970
|
+
*
|
|
12962
12971
|
* `cdk list --long --json` resolves the pattern to CloudFormation stack names
|
|
12963
12972
|
* out of the built assembly's manifest — no synth, no cloud call — and each
|
|
12964
12973
|
* name costs one `describe-stacks`, which needs only
|
|
@@ -12966,17 +12975,16 @@ declare class AwsDeployWorkflow extends Component {
|
|
|
12966
12975
|
* already carries it. A `cdk list` that fails contributes no names, leaving
|
|
12967
12976
|
* the diff to run exactly as it does today.
|
|
12968
12977
|
*
|
|
12969
|
-
*
|
|
12970
|
-
*
|
|
12971
|
-
*
|
|
12972
|
-
*
|
|
12973
|
-
*
|
|
12974
|
-
*
|
|
12975
|
-
* stack built from scratch is an add.
|
|
12978
|
+
* Both from-scratch arms therefore move the method, and only to `template`,
|
|
12979
|
+
* never to `auto`: `auto` would swallow a real permission failure and
|
|
12980
|
+
* present a degraded diff as authoritative, which is what an explicit
|
|
12981
|
+
* `change-set` pin exists to prevent. `template` over-reporting replacements
|
|
12982
|
+
* is vacuous here, because every resource in a stack built from scratch is
|
|
12983
|
+
* an add. A stack in any other status keeps the configured method.
|
|
12976
12984
|
*
|
|
12977
12985
|
* The method is per invocation, not per stack — `cdk diff` diffs everything
|
|
12978
12986
|
* its pattern matches in one pass. A pattern matching several stacks where
|
|
12979
|
-
* only one is
|
|
12987
|
+
* only one is from-scratch therefore diffs all of them with `template`, and
|
|
12980
12988
|
* the banner names the stack that caused it.
|
|
12981
12989
|
*/
|
|
12982
12990
|
private diffProbeLines;
|
package/lib/index.js
CHANGED
|
@@ -43398,6 +43398,15 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends import_projen29.Compone
|
|
|
43398
43398
|
* blocker rather than a cosmetic one: the apply requires a successful plan
|
|
43399
43399
|
* run, so one from-scratch target blocks applying any plan for the stage.
|
|
43400
43400
|
*
|
|
43401
|
+
* A genuinely absent stack fails the same way for a different reason:
|
|
43402
|
+
* `CreateChangeSet` resolves `AWS::SSM::Parameter::Value` template
|
|
43403
|
+
* parameters when the change set is created, so a never-deployed stack that
|
|
43404
|
+
* consumes parameters written by other not-yet-deployed stacks cannot get a
|
|
43405
|
+
* `CREATE` change set at all (`Unable to fetch parameters [...] from
|
|
43406
|
+
* parameter store for this account`). That deadlocks the first deployment of
|
|
43407
|
+
* an entire stage: no green plan without the upstream stacks, no upstream
|
|
43408
|
+
* stacks without an apply, no apply without a green plan.
|
|
43409
|
+
*
|
|
43401
43410
|
* `cdk list --long --json` resolves the pattern to CloudFormation stack names
|
|
43402
43411
|
* out of the built assembly's manifest — no synth, no cloud call — and each
|
|
43403
43412
|
* name costs one `describe-stacks`, which needs only
|
|
@@ -43405,17 +43414,16 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends import_projen29.Compone
|
|
|
43405
43414
|
* already carries it. A `cdk list` that fails contributes no names, leaving
|
|
43406
43415
|
* the diff to run exactly as it does today.
|
|
43407
43416
|
*
|
|
43408
|
-
*
|
|
43409
|
-
*
|
|
43410
|
-
*
|
|
43411
|
-
*
|
|
43412
|
-
*
|
|
43413
|
-
*
|
|
43414
|
-
* stack built from scratch is an add.
|
|
43417
|
+
* Both from-scratch arms therefore move the method, and only to `template`,
|
|
43418
|
+
* never to `auto`: `auto` would swallow a real permission failure and
|
|
43419
|
+
* present a degraded diff as authoritative, which is what an explicit
|
|
43420
|
+
* `change-set` pin exists to prevent. `template` over-reporting replacements
|
|
43421
|
+
* is vacuous here, because every resource in a stack built from scratch is
|
|
43422
|
+
* an add. A stack in any other status keeps the configured method.
|
|
43415
43423
|
*
|
|
43416
43424
|
* The method is per invocation, not per stack — `cdk diff` diffs everything
|
|
43417
43425
|
* its pattern matches in one pass. A pattern matching several stacks where
|
|
43418
|
-
* only one is
|
|
43426
|
+
* only one is from-scratch therefore diffs all of them with `template`, and
|
|
43419
43427
|
* the banner names the stack that caused it.
|
|
43420
43428
|
*/
|
|
43421
43429
|
this.diffProbeLines = (target, outputFile) => {
|
|
@@ -43437,7 +43445,8 @@ var AwsDeployWorkflow = class _AwsDeployWorkflow extends import_projen29.Compone
|
|
|
43437
43445
|
' status=$(aws cloudformation describe-stacks --stack-name "$stack" --query "Stacks[0].StackStatus" --output text 2>/dev/null || echo NOT_FOUND)',
|
|
43438
43446
|
' case "$status" in',
|
|
43439
43447
|
" NOT_FOUND|REVIEW_IN_PROGRESS)",
|
|
43440
|
-
`
|
|
43448
|
+
` method=${CDK_DIFF_METHOD.Template}`,
|
|
43449
|
+
` 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}`,
|
|
43441
43450
|
" ;;",
|
|
43442
43451
|
" ROLLBACK_COMPLETE|ROLLBACK_FAILED)",
|
|
43443
43452
|
` method=${CDK_DIFF_METHOD.Template}`,
|