cdk-real-drift 0.4.7 → 0.4.9
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/README.md +1 -1
- package/dist/cli.js +7 -2
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -358,7 +358,7 @@ CI (with `--yes`).
|
|
|
358
358
|
| option | meaning |
|
|
359
359
|
| -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
360
360
|
| `--region <r>` | a stack's own `env.region` ALWAYS wins; for an env-AGNOSTIC stack (no `env`) it falls back to `--region` (or `$AWS_REGION` / `$AWS_DEFAULT_REGION`), else the AWS-CLI/cdk region chain — the active profile's region, then the `[default]` profile's region, then EC2 IMDS |
|
|
361
|
-
| `--profile <p>` | AWS profile (
|
|
361
|
+
| `--profile <p>` | AWS profile (else `$AWS_PROFILE`, else `$AWS_DEFAULT_PROFILE` — same order `aws` and `cdk` use) |
|
|
362
362
|
| `-a, --app <cmd\|cdk.out>` | CDK app command or pre-synthesized assembly dir (or `$CDKRD_APP` / cdk.json `"app"`); stack auto-discovery + construct paths |
|
|
363
363
|
| `-c, --context key=value` | context for synth (repeatable; cdk.json is the base layer) |
|
|
364
364
|
| `--all` | target every stack the app defines (the default when no `<stack>` is named; overrides any positional names) |
|
package/dist/cli.js
CHANGED
|
@@ -403,7 +403,7 @@ function parseCommonArgs(args, verb) {
|
|
|
403
403
|
all: has("--all"),
|
|
404
404
|
context,
|
|
405
405
|
region: values["--region"] ?? process.env.AWS_REGION ?? process.env.AWS_DEFAULT_REGION,
|
|
406
|
-
profile: values["--profile"] ?? process.env.AWS_PROFILE,
|
|
406
|
+
profile: values["--profile"] ?? process.env.AWS_PROFILE ?? process.env.AWS_DEFAULT_PROFILE,
|
|
407
407
|
app: values["--app"] ?? process.env.CDKRD_APP,
|
|
408
408
|
json: has("--json"),
|
|
409
409
|
fail: has("--fail"),
|
|
@@ -4916,7 +4916,12 @@ function classifyResource(resource, liveRaw, schema, opts = {}) {
|
|
|
4916
4916
|
const freeFormMapPaths = schema.freeFormMapPaths ?? [];
|
|
4917
4917
|
const underFreeFormMap = (schemaPath) => freeFormMapPaths.some((ff) => schemaPath.startsWith(`${ff}.`));
|
|
4918
4918
|
const emitNested = (path, value) => {
|
|
4919
|
-
if (
|
|
4919
|
+
if (isTrivialEmpty(value)) return;
|
|
4920
|
+
if (isAllAwsTags(value)) {
|
|
4921
|
+
const isObjectForm = value !== null && typeof value === "object" && !Array.isArray(value);
|
|
4922
|
+
const parentKey = (path.split(".").pop() ?? "").replace(/\[.*$/, "");
|
|
4923
|
+
if (!isObjectForm || /tags$/i.test(parentKey)) return;
|
|
4924
|
+
}
|
|
4920
4925
|
const schemaPath = path.replace(/\[[^\]]*\]/g, ".*");
|
|
4921
4926
|
const tier = schemaPath in schema.defaultPaths && matchesKnownDefault(value, schema.defaultPaths[schemaPath]) || schemaPath in knownDefPaths && matchesKnownDefault(value, knownDefPaths[schemaPath]) || dynamoGsiWarmThroughputAtDefault(resourceType, path, value, live) ? "atDefault" : generatedPaths.includes(schemaPath) && isPhysicalIdSegment(value, physicalId) || generatedNestedPaths?.has(schemaPath) && !(schemaPath in knownDefPaths) ? "generated" : "undeclared";
|
|
4922
4927
|
const freeFormKey = tier === "undeclared" && underFreeFormMap(schemaPath);
|