@codedrifters/configulator 0.0.441 → 0.0.443

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 CHANGED
@@ -11368,7 +11368,7 @@ declare const VERSION: {
11368
11368
  *
11369
11369
  * CLI and lib are versioned separately, so this is the CLI version.
11370
11370
  */
11371
- readonly AWS_CDK_CLI_VERSION: "2.1135.1";
11371
+ readonly AWS_CDK_CLI_VERSION: "2.1136.0";
11372
11372
  /**
11373
11373
  * CDK Version to use for construct projects.
11374
11374
  *
@@ -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
- * A genuinely absent stack keeps the configured method CDK gives it a
12921
- * `CREATE` change set and diffs it fine. Only a tombstone moves the method,
12922
- * and only to `template`, never to `auto`: `auto` would swallow a real
12923
- * permission failure and present a degraded diff as authoritative, which is
12924
- * what an explicit `change-set` pin exists to prevent. `template`
12925
- * over-reporting replacements is vacuous here, because every resource in a
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 a tombstone therefore diffs all of them with `template`, and
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
@@ -11417,7 +11417,7 @@ declare const VERSION: {
11417
11417
  *
11418
11418
  * CLI and lib are versioned separately, so this is the CLI version.
11419
11419
  */
11420
- readonly AWS_CDK_CLI_VERSION: "2.1135.1";
11420
+ readonly AWS_CDK_CLI_VERSION: "2.1136.0";
11421
11421
  /**
11422
11422
  * CDK Version to use for construct projects.
11423
11423
  *
@@ -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
- * A genuinely absent stack keeps the configured method CDK gives it a
12970
- * `CREATE` change set and diffs it fine. Only a tombstone moves the method,
12971
- * and only to `template`, never to `auto`: `auto` would swallow a real
12972
- * permission failure and present a degraded diff as authoritative, which is
12973
- * what an explicit `change-set` pin exists to prevent. `template`
12974
- * over-reporting replacements is vacuous here, because every resource in a
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 a tombstone therefore diffs all of them with `template`, and
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
@@ -34824,7 +34824,7 @@ var VERSION = {
34824
34824
  *
34825
34825
  * CLI and lib are versioned separately, so this is the CLI version.
34826
34826
  */
34827
- AWS_CDK_CLI_VERSION: "2.1135.1",
34827
+ AWS_CDK_CLI_VERSION: "2.1136.0",
34828
34828
  /**
34829
34829
  * CDK Version to use for construct projects.
34830
34830
  *
@@ -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
- * A genuinely absent stack keeps the configured method CDK gives it a
43409
- * `CREATE` change set and diffs it fine. Only a tombstone moves the method,
43410
- * and only to `template`, never to `auto`: `auto` would swallow a real
43411
- * permission failure and present a degraded diff as authoritative, which is
43412
- * what an explicit `change-set` pin exists to prevent. `template`
43413
- * over-reporting replacements is vacuous here, because every resource in a
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 a tombstone therefore diffs all of them with `template`, and
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
- ` echo "${DIFF_NEW_STACK_MARKER} \u2014 $stack does not exist yet, so this target will be created from scratch." | tee -a ${outputFile}`,
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}`,