@go-to-k/cdkd 0.220.1 → 0.220.2
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/dist/cli.js +18 -8
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -104,19 +104,29 @@ const commonOptions = [
|
|
|
104
104
|
* Deprecated `--region` option attached to non-bootstrap commands.
|
|
105
105
|
*
|
|
106
106
|
* Kept (rather than fully removed) so that scripts or muscle memory passing
|
|
107
|
-
* `--region` do not break. The value
|
|
107
|
+
* `--region` do not break. The value IS still honored — every non-bootstrap
|
|
108
|
+
* command consumes `options.region` as the highest-precedence region source
|
|
109
|
+
* (`options.region || AWS_REGION || 'us-east-1'`): it sets the region of the
|
|
110
|
+
* provisioning / state-bucket SDK clients, the `applyRoleArnIfSet` STS hop,
|
|
111
|
+
* and (for `deploy` / `destroy` / `import` / `export` / `orphan`) the
|
|
112
|
+
* `AWS_REGION` env var inherited by the CDK synth subprocess. The flag is
|
|
113
|
+
* *deprecated* — the recommended way to choose the region is `AWS_REGION` or
|
|
114
|
+
* your AWS profile — but passing it is NOT a no-op. See
|
|
108
115
|
* `warnIfDeprecatedRegion` for the runtime warning. Final removal is
|
|
109
116
|
* tracked in PR 99 (see `docs/plans/05-region-flag-cleanup.md`).
|
|
110
117
|
*/
|
|
111
|
-
const deprecatedRegionOption = new Option("--region <region>", "[deprecated]
|
|
118
|
+
const deprecatedRegionOption = new Option("--region <region>", "[deprecated] Prefer AWS_REGION or your AWS profile; --region is still honored but will be removed in a future release").hideHelp();
|
|
112
119
|
/**
|
|
113
120
|
* Emit a one-shot stderr warning when a non-bootstrap command receives
|
|
114
|
-
* `--region`.
|
|
115
|
-
*
|
|
116
|
-
*
|
|
121
|
+
* `--region`. The flag is deprecated in favor of `AWS_REGION` / profile, but
|
|
122
|
+
* — contrary to an earlier message that claimed "no effect" — it is NOT a
|
|
123
|
+
* no-op: every non-bootstrap command consumes `options.region` as the
|
|
124
|
+
* highest-precedence region source (see `deprecatedRegionOption`). So the
|
|
125
|
+
* warning steers users toward the recommended mechanism WITHOUT falsely
|
|
126
|
+
* telling them their flag had no effect (issue #818).
|
|
117
127
|
*/
|
|
118
128
|
function warnIfDeprecatedRegion(options) {
|
|
119
|
-
if (options.region !== void 0) process.stderr.write("Warning: --region is deprecated
|
|
129
|
+
if (options.region !== void 0) process.stderr.write("Warning: --region is deprecated and will be removed in a future release. It is still honored for now (it overrides AWS_REGION / your AWS profile), but prefer the AWS_REGION environment variable or your AWS profile to choose the region.\n");
|
|
120
130
|
}
|
|
121
131
|
/**
|
|
122
132
|
* App options
|
|
@@ -1543,7 +1553,7 @@ const FLUSH_INTERVAL_MS = 2e3;
|
|
|
1543
1553
|
const FLUSH_EVENT_THRESHOLD = 50;
|
|
1544
1554
|
/** Build-time cdkd version, with a dev fallback for non-built contexts. */
|
|
1545
1555
|
function getCdkdVersion() {
|
|
1546
|
-
return "0.220.
|
|
1556
|
+
return "0.220.2";
|
|
1547
1557
|
}
|
|
1548
1558
|
/**
|
|
1549
1559
|
* Generate a time-sortable unique run id, e.g.
|
|
@@ -53540,7 +53550,7 @@ function reorderArgs(argv) {
|
|
|
53540
53550
|
async function main() {
|
|
53541
53551
|
installPipeCloseHandler();
|
|
53542
53552
|
const program = new Command();
|
|
53543
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.220.
|
|
53553
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.220.2");
|
|
53544
53554
|
program.addCommand(createBootstrapCommand());
|
|
53545
53555
|
program.addCommand(createSynthCommand());
|
|
53546
53556
|
program.addCommand(createListCommand());
|