@go-to-k/cdkd 0.220.1 → 0.220.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { A as withErrorHandling, B as generateResourceNameWithFallback, C as StackHasActiveImportsError, F as getLiveRenderer, H as withStackName, I as PATTERN_B_NAME_PROPERTIES, L as PATTERN_B_RESOURCE_TYPES, M as getLogger, P as runStackBuffered, S as ResourceUpdateNotSupportedError, V as withSkipPrefix, _ as MissingCdkCliError, a as assertRegionMatch, b as ProvisioningError, f as LocalInvokeBuildError$1, i as resolveExplicitPhysicalId, k as normalizeAwsError, l as CdkdError, m as LocalStartServiceError, n as matchesCdkPath, o as disableInstanceApiTermination, p as LocalMigrateError, r as normalizeAwsTagsToCfn, s as isTerminationProtectionPropagationError, t as CDK_PATH_TAG, v as NestedStackChildDirectDestroyError, w as StackTerminationProtectionError, x as ResourceTimeoutError, y as PartialFailureError, z as generateResourceName } from "./import-helpers-wLipXr5g.js";
3
3
  import { a as setAwsClients, i as resetAwsClients, r as getAwsClients, t as AwsClients } from "./aws-clients-pjPwZz1r.js";
4
- import { $ as resolveBucketRegion, A as stringifyValue, B as resolveApp, C as DiffCalculator, D as S3StateBackend, E as LockManager, F as runDockerForeground, G as warnDeprecatedNoPrefixCliFlag, H as resolveSkipPrefix, I as runDockerStreaming, J as MIGRATE_TMP_PREFIX, K as CFN_TEMPLATE_BODY_LIMIT, L as Synthesizer, M as buildDockerImage, N as formatDockerLoginError, O as shouldRetainResource, P as getDockerCmd, R as getDefaultStateBucketName, S as applyRoleArnIfSet, T as TemplateParser, U as resolveStateBucketWithDefault, V as resolveCaptureObservedState, W as resolveStateBucketWithDefaultAndSource, X as uploadCfnTemplate, Y as findLargeInlineResources, Z as AssemblyReader, _ as collectInlinePolicyNamesManagedBySiblings, a as withRetry, b as CloudControlProvider, c as extractDeploymentEventError, d as cyan, f as gray, g as IAMRoleProvider, h as yellow, i as withResourceDeadline, j as WorkGraph, k as AssetPublisher, l as formatResourceLine, m as red, n as DEFAULT_RESOURCE_WARN_AFTER_MS, o as isRetryableTransientError, p as green, q as CFN_TEMPLATE_URL_LIMIT, r as DeployEngine, s as IMPLICIT_DELETE_DEPENDENCIES, t as DEFAULT_RESOURCE_TIMEOUT_MS, u as bold, v as ProviderRegistry, w as DagBuilder, x as IntrinsicFunctionResolver, y as findActionableSilentDrops, z as getLegacyStateBucketName } from "./deploy-engine-CcOt3mUO.js";
4
+ import { $ as resolveBucketRegion, A as stringifyValue, B as resolveApp, C as DiffCalculator, D as S3StateBackend, E as LockManager, F as runDockerForeground, G as warnDeprecatedNoPrefixCliFlag, H as resolveSkipPrefix, I as runDockerStreaming, J as MIGRATE_TMP_PREFIX, K as CFN_TEMPLATE_BODY_LIMIT, L as Synthesizer, M as buildDockerImage, N as formatDockerLoginError, O as shouldRetainResource, P as getDockerCmd, R as getDefaultStateBucketName, S as applyRoleArnIfSet, T as TemplateParser, U as resolveStateBucketWithDefault, V as resolveCaptureObservedState, W as resolveStateBucketWithDefaultAndSource, X as uploadCfnTemplate, Y as findLargeInlineResources, Z as AssemblyReader, _ as collectInlinePolicyNamesManagedBySiblings, a as withRetry, b as CloudControlProvider, c as extractDeploymentEventError, d as cyan, f as gray, g as IAMRoleProvider, h as yellow, i as withResourceDeadline, j as WorkGraph, k as AssetPublisher, l as formatResourceLine, m as red, n as DEFAULT_RESOURCE_WARN_AFTER_MS, o as isRetryableTransientError, p as green, q as CFN_TEMPLATE_URL_LIMIT, r as DeployEngine, s as IMPLICIT_DELETE_DEPENDENCIES, t as DEFAULT_RESOURCE_TIMEOUT_MS, u as bold, v as ProviderRegistry, w as DagBuilder, x as IntrinsicFunctionResolver, y as findActionableSilentDrops, z as getLegacyStateBucketName } from "./deploy-engine-xlz3wc4W.js";
5
5
  import { t as ASGProvider } from "./asg-provider-B_hrCxRx.js";
6
6
  import { AsyncLocalStorage } from "node:async_hooks";
7
7
  import { randomBytes, randomUUID } from "node:crypto";
@@ -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 is parsed but ignored see
107
+ * `--region` do not break. The value IS still honoredevery 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] No effect on this command; use AWS_REGION or your AWS profile").hideHelp();
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`. PR 5 consolidates `--region` to bootstrap-only; everywhere
115
- * else the SDK picks up the region from `AWS_REGION` / profile, and
116
- * passing the flag does nothing useful.
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 for this command and has no effect. Use the AWS_REGION environment variable or your AWS profile to override the SDK default region.\n");
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.1";
1556
+ return "0.220.3";
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.1");
53553
+ program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.220.3");
53544
53554
  program.addCommand(createBootstrapCommand());
53545
53555
  program.addCommand(createSynthCommand());
53546
53556
  program.addCommand(createListCommand());