@go-to-k/cdkd 0.278.13 → 0.278.14

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
- import { $ as DagBuilder, A as red, At as resolveApp, B as isTerminationProtectionPropagationError, Bt as CFN_TEMPLATE_URL_LIMIT, C as isStatefulRecreateTargetSync, Ct as runDockerStreaming, D as cyan, Dt as synthesisStatusMessage, E as bold, Et as Synthesizer, F as ProviderRegistry, Ft as resolveStateBucketWithDefaultAndSource, G as normalizeAwsTagsToCfn, Gt as AssemblyReader, H as cfnRefValueFromPhysicalId, Ht as findLargeInlineResources, I as findActionableSilentDrops, It as resolveUseCdkBootstrapAssets, J as applyRoleArnIfSet, Jt as resolveBucketRegion, K as resolveExplicitPhysicalId, Kt as processStackMessages, L as CloudControlProvider, Lt as stateBucketExistenceConfirmed, M as IAMRoleProvider, Mt as resolveCaptureObservedState, N as collectInlinePolicyNamesManagedBySiblings, Nt as resolveSkipPrefix, O as gray, Ot as getDefaultStateBucketName, P as clearOnUpdateRemoval, Pt as resolveStateBucketWithDefault, Q as isRetryableTransientError, Qt as setAwsClients, R as slowCcOperationTimeoutMs, Rt as warnDeprecatedNoPrefixCliFlag, S as MULTI_REGION_RECREATE_BLOCKED_TYPES, St as runDockerForeground, T as formatResourceLine, Tt as getDockerImageBySourceHash, U as refStateLookupFromResource, Ut as uploadCfnTemplate, V as IntrinsicFunctionResolver, Vt as MIGRATE_TMP_PREFIX, W as WAFv2WebACLProvider, Wt as expectedOwnerParam, X as describeTypeWithThrottleRetry, Xt as getAwsClients, Y as DiffCalculator, Yt as AwsClients, Z as withRetry, Zt as resetAwsClients, _ as createPreDeleteFinalSnapshot, _t as validateAssetBucketName, a as DeploymentEventsStore, an as LocalMigrateError, at as AssetPublisher, b as unsupportedFinalSnapshotError, bn as normalizeAwsError, bt as formatDockerLoginError, c as replayFailedOperations, cn as MissingCdkCliError, ct as buildAssetRedirectMap, d as IMPLICIT_DELETE_DEPENDENCIES, dn as ProvisioningError, dt as rewriteTemplateAssetReferences, en as CdkdError, et as TemplateParser, f as computeImplicitDeleteEdges, fn as ResourceTimeoutError, ft as AssetModeResolver, g as ccRoutedFinalSnapshotError, gt as parseBootstrapMarker, h as buildFinalSnapshotIdentifier, hn as StackTerminationProtectionError, ht as getBootstrapMarkerKey, i as DeploymentEventsReader, in as LocalInvokeBuildError$1, it as shouldRetainResource, j as yellow, jt as resolveAutoAssetStorage, k as green, kt as getLegacyStateBucketName, l as replayRollback, ln as NestedStackChildDirectDestroyError, lt as createAssetRedirectResolver, m as PRE_DELETE_SNAPSHOT_TYPES, mn as StackHasActiveImportsError, mt as ensureAssetStorage, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nt as S3StateBackend, o as planFailedOps, on as LocalStartServiceError, ot as stringifyValue, p as ATOMIC_FINAL_SNAPSHOT_TYPES, pn as ResourceUpdateNotSupportedError, pt as BOOTSTRAP_MARKER_PREFIX, q as assertRegionMatch, r as DeployEngine, rn as DeployCancelledError, rt as rebuildClientForBucketRegion, s as planRollback, st as WorkGraph, t as DEFAULT_RESOURCE_TIMEOUT_MS, tt as LockManager, u as withResourceDeadline, un as PartialFailureError, ut as loadPublishableAssetManifest, v as isFinalSnapshotError, vt as validateContainerRepoName, w as renderStatefulReason, wt as AssetManifestLoader, x as extractDeploymentEventError, xn as withErrorHandling, xt as getDockerCmd, y as refusesFinalSnapshot, yt as buildDockerImage, z as disableInstanceApiTermination, zt as CFN_TEMPLATE_BODY_LIMIT } from "./deploy-engine-BpbIYUuG.js";
2
+ import { $ as DagBuilder, A as red, At as resolveApp, B as isTerminationProtectionPropagationError, Bt as CFN_TEMPLATE_URL_LIMIT, C as isStatefulRecreateTargetSync, Ct as runDockerStreaming, D as cyan, Dt as synthesisStatusMessage, E as bold, Et as Synthesizer, F as ProviderRegistry, Ft as resolveStateBucketWithDefaultAndSource, G as normalizeAwsTagsToCfn, Gt as AssemblyReader, H as cfnRefValueFromPhysicalId, Ht as findLargeInlineResources, I as findActionableSilentDrops, It as resolveUseCdkBootstrapAssets, J as applyRoleArnIfSet, Jt as resolveBucketRegion, K as resolveExplicitPhysicalId, Kt as processStackMessages, L as CloudControlProvider, Lt as stateBucketExistenceConfirmed, M as IAMRoleProvider, Mt as resolveCaptureObservedState, N as collectInlinePolicyNamesManagedBySiblings, Nt as resolveSkipPrefix, O as gray, Ot as getDefaultStateBucketName, P as clearOnUpdateRemoval, Pt as resolveStateBucketWithDefault, Q as isRetryableTransientError, Qt as setAwsClients, R as slowCcOperationTimeoutMs, Rt as warnDeprecatedNoPrefixCliFlag, S as MULTI_REGION_RECREATE_BLOCKED_TYPES, St as runDockerForeground, T as formatResourceLine, Tt as getDockerImageBySourceHash, U as refStateLookupFromResource, Ut as uploadCfnTemplate, V as IntrinsicFunctionResolver, Vt as MIGRATE_TMP_PREFIX, W as WAFv2WebACLProvider, Wt as expectedOwnerParam, X as describeTypeWithThrottleRetry, Xt as getAwsClients, Y as DiffCalculator, Yt as AwsClients, Z as withRetry, Zt as resetAwsClients, _ as createPreDeleteFinalSnapshot, _t as validateAssetBucketName, a as DeploymentEventsStore, an as LocalMigrateError, at as AssetPublisher, b as unsupportedFinalSnapshotError, bn as normalizeAwsError, bt as formatDockerLoginError, c as replayFailedOperations, cn as MissingCdkCliError, ct as buildAssetRedirectMap, d as IMPLICIT_DELETE_DEPENDENCIES, dn as ProvisioningError, dt as rewriteTemplateAssetReferences, en as CdkdError, et as TemplateParser, f as computeImplicitDeleteEdges, fn as ResourceTimeoutError, ft as AssetModeResolver, g as ccRoutedFinalSnapshotError, gt as parseBootstrapMarker, h as buildFinalSnapshotIdentifier, hn as StackTerminationProtectionError, ht as getBootstrapMarkerKey, i as DeploymentEventsReader, in as LocalInvokeBuildError$1, it as shouldRetainResource, j as yellow, jt as resolveAutoAssetStorage, k as green, kt as getLegacyStateBucketName, l as replayRollback, ln as NestedStackChildDirectDestroyError, lt as createAssetRedirectResolver, m as PRE_DELETE_SNAPSHOT_TYPES, mn as StackHasActiveImportsError, mt as ensureAssetStorage, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nt as S3StateBackend, o as planFailedOps, on as LocalStartServiceError, ot as stringifyValue, p as ATOMIC_FINAL_SNAPSHOT_TYPES, pn as ResourceUpdateNotSupportedError, pt as BOOTSTRAP_MARKER_PREFIX, q as assertRegionMatch, r as DeployEngine, rn as DeployCancelledError, rt as rebuildClientForBucketRegion, s as planRollback, st as WorkGraph, t as DEFAULT_RESOURCE_TIMEOUT_MS, tt as LockManager, u as withResourceDeadline, un as PartialFailureError, ut as loadPublishableAssetManifest, v as isFinalSnapshotError, vt as validateContainerRepoName, w as renderStatefulReason, wt as AssetManifestLoader, x as extractDeploymentEventError, xn as withErrorHandling, xt as getDockerCmd, y as refusesFinalSnapshot, yt as buildDockerImage, z as disableInstanceApiTermination, zt as CFN_TEMPLATE_BODY_LIMIT } from "./deploy-engine-CLNqGpsK.js";
3
3
  import { a as getLiveRenderer, c as PATTERN_B_RESOURCE_TYPES, d as generateResourceNameWithFallback, f as withSkipPrefix, i as runStackBuffered, n as getLogger, o as PATTERN_B_NAME_OPTIONS, p as withStackName, s as PATTERN_B_NAME_PROPERTIES, u as generateResourceName } from "./logger-BYMEE-BS.js";
4
- import { t as ASGProvider } from "./asg-provider-QQOSO3LR.js";
4
+ import { t as ASGProvider } from "./asg-provider-Abhz9gSY.js";
5
5
  import { AsyncLocalStorage } from "node:async_hooks";
6
6
  import { createHash, randomBytes, randomUUID } from "node:crypto";
7
7
  import { CopyObjectCommand, CreateBucketCommand, DeleteBucketAnalyticsConfigurationCommand, DeleteBucketCommand, DeleteBucketCorsCommand, DeleteBucketIntelligentTieringConfigurationCommand, DeleteBucketInventoryConfigurationCommand, DeleteBucketLifecycleCommand, DeleteBucketMetricsConfigurationCommand, DeleteBucketPolicyCommand, DeleteBucketReplicationCommand, DeleteBucketTaggingCommand, DeleteBucketWebsiteCommand, DeleteObjectsCommand, GetBucketAccelerateConfigurationCommand, GetBucketCorsCommand, GetBucketEncryptionCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketLoggingCommand, GetBucketNotificationConfigurationCommand, GetBucketPolicyCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetBucketVersioningCommand, GetBucketWebsiteCommand, GetObjectCommand, GetObjectLockConfigurationCommand, GetPublicAccessBlockCommand, HeadBucketCommand, ListBucketAnalyticsConfigurationsCommand, ListBucketIntelligentTieringConfigurationsCommand, ListBucketInventoryConfigurationsCommand, ListBucketMetricsConfigurationsCommand, ListObjectVersionsCommand, ListObjectsV2Command, NoSuchBucket, PutBucketAccelerateConfigurationCommand, PutBucketAnalyticsConfigurationCommand, PutBucketCorsCommand, PutBucketEncryptionCommand, PutBucketIntelligentTieringConfigurationCommand, PutBucketInventoryConfigurationCommand, PutBucketLifecycleConfigurationCommand, PutBucketLoggingCommand, PutBucketMetricsConfigurationCommand, PutBucketNotificationConfigurationCommand, PutBucketOwnershipControlsCommand, PutBucketPolicyCommand, PutBucketReplicationCommand, PutBucketTaggingCommand, PutBucketVersioningCommand, PutBucketWebsiteCommand, PutObjectCommand, PutObjectLockConfigurationCommand, PutPublicAccessBlockCommand, S3Client, S3ServiceException } from "@aws-sdk/client-s3";
@@ -41006,6 +41006,15 @@ var CodeBuildProvider = class {
41006
41006
  if (!this.client) this.client = new CodeBuildClient(this.providerRegion ? { region: this.providerRegion } : {});
41007
41007
  return this.client;
41008
41008
  }
41009
+ /**
41010
+ * Return type is DECLARED on purpose. `new CreateProjectCommand(input)` takes
41011
+ * a variable, so TypeScript's excess-property check never runs there and a
41012
+ * misspelled SDK member (`gitSubModulesConfig`) would compile, be dropped by
41013
+ * the serializer, and still pass every unit test — the tests read back the
41014
+ * same key the mapper wrote, so they are tautological on spelling. A fresh
41015
+ * object literal returned against a declared type IS excess-property checked,
41016
+ * which turns each member name into a compile-time fact (issue #1386).
41017
+ */
41009
41018
  mapSource(source) {
41010
41019
  if (!source) return { type: "NO_SOURCE" };
41011
41020
  let buildspec;
@@ -41013,13 +41022,26 @@ var CodeBuildProvider = class {
41013
41022
  const bs = source["BuildSpec"];
41014
41023
  buildspec = typeof bs === "object" ? JSON.stringify(bs) : bs;
41015
41024
  }
41025
+ const cfnAuth = source["Auth"];
41026
+ const cfnGitSubmodules = source["GitSubmodulesConfig"];
41027
+ const cfnBuildStatus = source["BuildStatusConfig"];
41016
41028
  return {
41017
41029
  type: source["Type"] ?? "NO_SOURCE",
41018
41030
  buildspec,
41019
41031
  location: source["Location"],
41020
41032
  gitCloneDepth: source["GitCloneDepth"],
41021
41033
  insecureSsl: source["InsecureSsl"],
41022
- reportBuildStatus: source["ReportBuildStatus"]
41034
+ reportBuildStatus: source["ReportBuildStatus"],
41035
+ sourceIdentifier: source["SourceIdentifier"],
41036
+ auth: cfnAuth ? {
41037
+ type: cfnAuth["Type"],
41038
+ resource: cfnAuth["Resource"]
41039
+ } : void 0,
41040
+ gitSubmodulesConfig: cfnGitSubmodules ? { fetchSubmodules: cfnGitSubmodules["FetchSubmodules"] } : void 0,
41041
+ buildStatusConfig: cfnBuildStatus ? {
41042
+ context: cfnBuildStatus["Context"],
41043
+ targetUrl: cfnBuildStatus["TargetUrl"]
41044
+ } : void 0
41023
41045
  };
41024
41046
  }
41025
41047
  mapArtifacts(artifacts) {
@@ -41036,6 +41058,7 @@ var CodeBuildProvider = class {
41036
41058
  artifactIdentifier: artifacts["ArtifactIdentifier"]
41037
41059
  };
41038
41060
  }
41061
+ /** Declared return type for the same excess-property reason as {@link mapSource}. */
41039
41062
  mapProperties(logicalId, properties) {
41040
41063
  const name = properties["Name"] ?? logicalId;
41041
41064
  const source = properties["Source"];
@@ -41048,11 +41071,14 @@ var CodeBuildProvider = class {
41048
41071
  const artifacts = properties["Artifacts"];
41049
41072
  const tags = properties["Tags"];
41050
41073
  const envVars = environment?.["EnvironmentVariables"];
41074
+ const cfnFleet = environment?.["Fleet"];
41075
+ const cfnDockerServer = environment?.["DockerServer"];
41051
41076
  const cfnCache = properties["Cache"];
41052
41077
  const cache = cfnCache ? {
41053
41078
  type: cfnCache["Type"],
41054
41079
  location: cfnCache["Location"],
41055
- modes: cfnCache["Modes"]
41080
+ modes: cfnCache["Modes"],
41081
+ cacheNamespace: cfnCache["CacheNamespace"]
41056
41082
  } : void 0;
41057
41083
  const cfnVpcConfig = properties["VpcConfig"];
41058
41084
  const vpcConfig = cfnVpcConfig ? {
@@ -41103,6 +41129,7 @@ var CodeBuildProvider = class {
41103
41129
  serviceRole: cfnBuildBatchConfig["ServiceRole"],
41104
41130
  combineArtifacts: cfnBuildBatchConfig["CombineArtifacts"],
41105
41131
  timeoutInMins: cfnBuildBatchConfig["TimeoutInMins"],
41132
+ batchReportMode: cfnBuildBatchConfig["BatchReportMode"],
41106
41133
  restrictions: restrictions ? {
41107
41134
  maximumBuildsAllowed: restrictions["MaximumBuildsAllowed"],
41108
41135
  computeTypesAllowed: restrictions["ComputeTypesAllowed"]
@@ -41124,6 +41151,11 @@ var CodeBuildProvider = class {
41124
41151
  privilegedMode: environment?.["PrivilegedMode"],
41125
41152
  certificate: environment?.["Certificate"],
41126
41153
  imagePullCredentialsType: environment?.["ImagePullCredentialsType"],
41154
+ fleet: cfnFleet ? { fleetArn: cfnFleet["FleetArn"] } : void 0,
41155
+ dockerServer: cfnDockerServer ? {
41156
+ computeType: cfnDockerServer["ComputeType"],
41157
+ securityGroupIds: cfnDockerServer["SecurityGroupIds"]
41158
+ } : void 0,
41127
41159
  registryCredential: environment?.["RegistryCredential"] ? {
41128
41160
  credential: environment["RegistryCredential"]["Credential"],
41129
41161
  credentialProvider: environment["RegistryCredential"]["CredentialProvider"]
@@ -41270,6 +41302,14 @@ var CodeBuildProvider = class {
41270
41302
  if (project.source?.gitCloneDepth !== void 0) src["GitCloneDepth"] = project.source.gitCloneDepth;
41271
41303
  if (project.source?.insecureSsl !== void 0) src["InsecureSsl"] = project.source.insecureSsl;
41272
41304
  if (project.source?.reportBuildStatus !== void 0) src["ReportBuildStatus"] = project.source.reportBuildStatus;
41305
+ if (project.source?.sourceIdentifier !== void 0) src["SourceIdentifier"] = project.source.sourceIdentifier;
41306
+ if (project.source?.gitSubmodulesConfig !== void 0) src["GitSubmodulesConfig"] = { FetchSubmodules: project.source.gitSubmodulesConfig.fetchSubmodules };
41307
+ if (project.source?.buildStatusConfig !== void 0) {
41308
+ const bsc = {};
41309
+ if (project.source.buildStatusConfig.context !== void 0) bsc["Context"] = project.source.buildStatusConfig.context;
41310
+ if (project.source.buildStatusConfig.targetUrl !== void 0) bsc["TargetUrl"] = project.source.buildStatusConfig.targetUrl;
41311
+ src["BuildStatusConfig"] = bsc;
41312
+ }
41273
41313
  result["Source"] = src;
41274
41314
  }
41275
41315
  {
@@ -41293,6 +41333,17 @@ var CodeBuildProvider = class {
41293
41333
  if (project.environment?.privilegedMode !== void 0) env["PrivilegedMode"] = project.environment.privilegedMode;
41294
41334
  if (project.environment?.imagePullCredentialsType !== void 0) env["ImagePullCredentialsType"] = project.environment.imagePullCredentialsType;
41295
41335
  if (project.environment?.certificate !== void 0) env["Certificate"] = project.environment.certificate;
41336
+ if (project.environment?.fleet !== void 0) {
41337
+ const fleet = {};
41338
+ if (project.environment.fleet.fleetArn !== void 0) fleet["FleetArn"] = project.environment.fleet.fleetArn;
41339
+ env["Fleet"] = fleet;
41340
+ }
41341
+ if (project.environment?.dockerServer !== void 0) {
41342
+ const ds = {};
41343
+ if (project.environment.dockerServer.computeType !== void 0) ds["ComputeType"] = project.environment.dockerServer.computeType;
41344
+ if (project.environment.dockerServer.securityGroupIds !== void 0) ds["SecurityGroupIds"] = project.environment.dockerServer.securityGroupIds;
41345
+ env["DockerServer"] = ds;
41346
+ }
41296
41347
  env["EnvironmentVariables"] = (project.environment?.environmentVariables ?? []).map((ev) => {
41297
41348
  const out = {};
41298
41349
  if (ev.name !== void 0) out["Name"] = ev.name;
@@ -41325,6 +41376,7 @@ var CodeBuildProvider = class {
41325
41376
  const cache = { Type: project.cache?.type ?? "NO_CACHE" };
41326
41377
  if (project.cache?.location !== void 0) cache["Location"] = project.cache.location;
41327
41378
  if (project.cache?.modes !== void 0) cache["Modes"] = project.cache.modes;
41379
+ if (project.cache?.cacheNamespace !== void 0) cache["CacheNamespace"] = project.cache.cacheNamespace;
41328
41380
  result["Cache"] = cache;
41329
41381
  }
41330
41382
  result["SecondarySources"] = (project.secondarySources ?? []).map((s) => {
@@ -41336,6 +41388,13 @@ var CodeBuildProvider = class {
41336
41388
  if (s.insecureSsl !== void 0) out["InsecureSsl"] = s.insecureSsl;
41337
41389
  if (s.reportBuildStatus !== void 0) out["ReportBuildStatus"] = s.reportBuildStatus;
41338
41390
  if (s.sourceIdentifier !== void 0) out["SourceIdentifier"] = s.sourceIdentifier;
41391
+ if (s.gitSubmodulesConfig !== void 0) out["GitSubmodulesConfig"] = { FetchSubmodules: s.gitSubmodulesConfig.fetchSubmodules };
41392
+ if (s.buildStatusConfig !== void 0) {
41393
+ const bsc = {};
41394
+ if (s.buildStatusConfig.context !== void 0) bsc["Context"] = s.buildStatusConfig.context;
41395
+ if (s.buildStatusConfig.targetUrl !== void 0) bsc["TargetUrl"] = s.buildStatusConfig.targetUrl;
41396
+ out["BuildStatusConfig"] = bsc;
41397
+ }
41339
41398
  return out;
41340
41399
  });
41341
41400
  result["SecondaryArtifacts"] = (project.secondaryArtifacts ?? []).map((a) => {
@@ -41384,6 +41443,9 @@ var CodeBuildProvider = class {
41384
41443
  result["Tags"] = normalizeAwsTagsToCfn(project.tags);
41385
41444
  return result;
41386
41445
  }
41446
+ getDriftUnknownPaths() {
41447
+ return ["Source.Auth"];
41448
+ }
41387
41449
  async import(input) {
41388
41450
  const explicit = resolveExplicitPhysicalId(input, "Name");
41389
41451
  if (explicit) try {
@@ -64906,7 +64968,7 @@ function createMigrateCommand() {
64906
64968
  */
64907
64969
  function buildProgram() {
64908
64970
  const program = new Command();
64909
- program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.278.13");
64971
+ program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.278.14");
64910
64972
  program.hook("preAction", (_thisCommand, actionCommand) => {
64911
64973
  const { profile } = actionCommand.optsWithGlobals();
64912
64974
  if (profile !== void 0) process.env["AWS_PROFILE"] = profile;