cdk-preflight 1.20.17 → 1.20.19

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/.jsii CHANGED
@@ -10111,6 +10111,6 @@
10111
10111
  "symbolId": "src/index:PreflightOptions"
10112
10112
  }
10113
10113
  },
10114
- "version": "1.20.17",
10115
- "fingerprint": "1LTCjseYXER+4Xus7aYI2SsHLXXbpYd2SjnaZUq4DFQ="
10114
+ "version": "1.20.19",
10115
+ "fingerprint": "wVTa/ry3VEOLMqVSoiguYQ20EvhwLHi/xOiKqqdUdMc="
10116
10116
  }
package/AGENTS.md CHANGED
@@ -203,6 +203,8 @@ If you are a subagent running one of these phases, do not spawn further agents.
203
203
  - `ServiceTimeout: "300"` on the custom resource and a function `Timeout` well under it; `DependsOn` every policy, subscription and target the probe exercises, so it never runs before its scaffolding exists.
204
204
  - The `Reason` starts with the observation that names the constraint (the service's own error when there is one — `Runtime.ImportModuleError`, an alarm's `Failed to execute action`), and `repro.expect` quotes it. `verify-rule.sh` treats a failed resource whose type is not in `resourceTypes` as scaffolding unless its reason contains `expect`, so without `expect` a probe's verdict is never accepted. A probe that crashes says `cdkpf probe could not run`, which matches no `expect` and comes out INCONCLUSIVE.
205
205
  - No fixed names on anything, as everywhere in the fixtures (parallel runs collide).
206
+
207
+ **A rule whose CloudFormation failure names nothing gets an API probe** (#296, 2026-12-01). Some handlers relay an empty 400 (`(Service: S3Control, Status Code: 400, ...)`, Route 53 CIDR collections, `CreateOpenIDConnectProvider`) or only `NotStabilized`, and some constraints can only be told apart with a real resource in another Region (an ACM certificate or trust store in another Region reads the same as one that does not exist). The probe then calls the service API itself, with the same inputs, before the judged resource is created (the judged resource `DependsOn: Probe`), and answers `FAILED` with `<Code> from <Operation>: <Message>`; `repro.expect` quotes that, operation included, so a judged resource failing on its own (a placeholder ARN) never matches it. If the API accepts the input, the probe undoes what it made and answers `SUCCESS`, the judged resource is created, and a lifted constraint shows up as BROKEN or INCONCLUSIVE. The 19 rules of #296 are the reference (`pf-s3-storagelens-*`, `pf-route53-cidr*`, `pf-elbv2-listener-cert*-region`, `pf-dynamodb-kinesis-stream-region`, ...). Real resources in another Region live in `bench/fixtures.sh` (ap-northeast-1: a self-signed certificate imported into ACM and a trust store, ARNs under `/cdkpf/fixtures/xregion/`); a fail template cannot point the judged resource at them, because the engine reads a value containing `{{resolve:` as unknown and the rule goes silent. Before reaching for a probe, try the cheaper fix: point the fixture at a real value so the handler relays the service error (an AWS-owned blueprint in another Region, a real layer without a version, a domain file that exists).
206
208
  5. Update nothing else by hand, and **do not commit the generated artifacts** — a rule PR touches `rules/**` and
207
209
  nothing else. `src/rules.generated.ts` is gitignored and written by `npx projen bundle-rules`, which `preCompile`
208
210
  spawns on every build. `docs/rules.md` and the parts of `README.md` between the `<!-- supported-resources:start -->`
package/lib/index.js CHANGED
@@ -19,7 +19,7 @@ const rules_generated_1 = require("./rules.generated");
19
19
  * Preflight.apply(app);
20
20
  */
21
21
  class Preflight {
22
- static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-preflight.Preflight", version: "1.20.17" };
22
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-preflight.Preflight", version: "1.20.19" };
23
23
  /**
24
24
  * Register the cdk-preflight rules on an App or Stage.
25
25
  */