@go-to-k/cdkd 0.280.13 → 0.280.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/{asg-provider-DJSCLI9C.js → asg-provider-DIMKyE07.js} +2 -2
- package/dist/{asg-provider-DJSCLI9C.js.map → asg-provider-DIMKyE07.js.map} +1 -1
- package/dist/cli.js +41 -3
- package/dist/cli.js.map +1 -1
- package/dist/{deploy-engine-CE-J9Vlu.js → deploy-engine-D4VaoTK7.js} +59 -19
- package/dist/deploy-engine-D4VaoTK7.js.map +1 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-CE-J9Vlu.js.map +0 -1
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as
|
|
2
|
+
import { $ as requireConfigString, $t as processStackMessages, A as red, At as runDockerStreaming, B as isTerminationProtectionPropagationError, Bt as resolveSkipPrefix, C as isStatefulRecreateTargetSync, Ct as parseBootstrapMarker, D as cyan, Dn as normalizeAwsError, Dt as formatDockerLoginError, E as bold, Et as buildDockerImage, F as ProviderRegistry, Ft as getDefaultStateBucketName, G as normalizeAwsTagsToCfn, Gt as warnDeprecatedNoPrefixCliFlag, H as cfnRefValueFromPhysicalId, Ht as resolveStateBucketWithDefaultAndSource, I as findActionableSilentDrops, It as getLegacyStateBucketName, J as configStringRefusal, Jt as MIGRATE_TMP_PREFIX, K as resolveExplicitPhysicalId, Kt as CFN_TEMPLATE_BODY_LIMIT, L as CloudControlProvider, Lt as resolveApp, M as IAMRoleProvider, Mt as getDockerImageBySourceHash, N as collectInlinePolicyNamesManagedBySiblings, Nt as Synthesizer, O as gray, On as withErrorHandling, Ot as getDockerCmd, P as clearOnUpdateRemoval, Pt as synthesisStatusMessage, Q as requireConfigObject, Qt as AssemblyReader, R as slowCcOperationTimeoutMs, Rt as resolveAutoAssetStorage, S as MULTI_REGION_RECREATE_BLOCKED_TYPES, Sn as StackTerminationProtectionError, St as getBootstrapMarkerKey, T as formatResourceLine, Tt as validateContainerRepoName, U as refStateLookupFromResource, Ut as resolveUseCdkBootstrapAssets, V as IntrinsicFunctionResolver, Vt as resolveStateBucketWithDefault, W as WAFv2WebACLProvider, Wt as stateBucketExistenceConfirmed, X as replayWarn, Xt as uploadCfnTemplate, Y as readConfigString, Yt as findLargeInlineResources, Z as requireConfigArray, Zt as expectedOwnerParam, _ as createPreDeleteFinalSnapshot, _n as PartialFailureError, _t as loadPublishableAssetManifest, a as DeploymentEventsStore, an as setAwsClients, at as isThrottlingError, b as unsupportedFinalSnapshotError, bn as ResourceUpdateNotSupportedError, bt as BOOTSTRAP_MARKER_PREFIX, c as replayFailedOperations, ct as LockManager, d as IMPLICIT_DELETE_DEPENDENCIES, dn as LocalInvokeBuildError$1, dt as shouldRetainResource, et as applyRoleArnIfSet, f as computeImplicitDeleteEdges, fn as LocalMigrateError, ft as AssetPublisher, g as ccRoutedFinalSnapshotError, gn as NestedStackChildDirectDestroyError, gt as createAssetRedirectResolver, h as buildFinalSnapshotIdentifier, hn as MissingCdkCliError, ht as buildAssetRedirectMap, i as DeploymentEventsReader, in as resetAwsClients, it as isRetryableTransientError, j as yellow, jt as AssetManifestLoader, k as green, kt as runDockerForeground, l as replayRollback, lt as S3StateBackend, m as PRE_DELETE_SNAPSHOT_TYPES, mt as WorkGraph, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nn as AwsClients, nt as describeTypeWithThrottleRetry, o as planFailedOps, ot as DagBuilder, p as ATOMIC_FINAL_SNAPSHOT_TYPES, pn as LocalStartServiceError, pt as stringifyValue, q as assertRegionMatch, qt as CFN_TEMPLATE_URL_LIMIT, r as DeployEngine, rn as getAwsClients, rt as withRetry, s as planRollback, sn as CdkdError, st as TemplateParser, t as DEFAULT_RESOURCE_TIMEOUT_MS, tn as resolveBucketRegion, tt as DiffCalculator, u as withResourceDeadline, un as DeployCancelledError, ut as rebuildClientForBucketRegion, v as isFinalSnapshotError, vn as ProvisioningError, vt as rewriteTemplateAssetReferences, w as renderStatefulReason, wt as validateAssetBucketName, x as extractDeploymentEventError, xn as StackHasActiveImportsError, xt as ensureAssetStorage, y as refusesFinalSnapshot, yn as ResourceTimeoutError, yt as AssetModeResolver, z as disableInstanceApiTermination, zt as resolveCaptureObservedState } from "./deploy-engine-D4VaoTK7.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-
|
|
4
|
+
import { t as ASGProvider } from "./asg-provider-DIMKyE07.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, DeleteBucketEncryptionCommand, DeleteBucketIntelligentTieringConfigurationCommand, DeleteBucketInventoryConfigurationCommand, DeleteBucketLifecycleCommand, DeleteBucketMetricsConfigurationCommand, DeleteBucketOwnershipControlsCommand, DeleteBucketPolicyCommand, DeleteBucketReplicationCommand, DeleteBucketTaggingCommand, DeleteBucketWebsiteCommand, DeleteObjectsCommand, GetBucketAccelerateConfigurationCommand, GetBucketCorsCommand, GetBucketEncryptionCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketLoggingCommand, GetBucketNotificationConfigurationCommand, GetBucketOwnershipControlsCommand, 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";
|
|
@@ -5065,6 +5065,40 @@ var S3BucketProvider = class S3BucketProvider {
|
|
|
5065
5065
|
this.logger.debug(`Applied CORS configuration to bucket ${bucketName}`);
|
|
5066
5066
|
}
|
|
5067
5067
|
/**
|
|
5068
|
+
* The per-item / per-rule STRING guard, with the applier's own SKIP as the
|
|
5069
|
+
* replay downgrade (issue #1595).
|
|
5070
|
+
*
|
|
5071
|
+
* Four per-item reads in this file refuse a malformed configuration ITEM
|
|
5072
|
+
* through a `readConfigString` that carries no `onUnusable`, so they threw on
|
|
5073
|
+
* the state-replay paths too — the un-rollbackable refusal every container
|
|
5074
|
+
* guard beside them exists to avoid. What they must NOT do instead is take
|
|
5075
|
+
* `readConfigString`'s own downgrade: its fallback is applied to a LIVE
|
|
5076
|
+
* resource, and each of these defaults ENABLES something (a lifecycle
|
|
5077
|
+
* expiration rule, an intelligent-tiering transition, a replication rule),
|
|
5078
|
+
* so warn-and-default is worse than the refusal it replaces. The correct
|
|
5079
|
+
* downgrade is the SKIP the sibling container guards already perform, with
|
|
5080
|
+
* the same per-applier unit — whole Put where the Put replaces every rule,
|
|
5081
|
+
* the single configuration item where the Put is per-Id.
|
|
5082
|
+
*
|
|
5083
|
+
* Returns `true` when the caller must skip. On the CREATE path (`onUnusable`
|
|
5084
|
+
* absent) it always returns `false` and the original read below still
|
|
5085
|
+
* throws, so template-borne behavior is unchanged.
|
|
5086
|
+
*
|
|
5087
|
+
* No `ConfigStringOptions` passthrough, and that is a decision rather than an
|
|
5088
|
+
* omission: a probe whose relaxations disagree with the read it fronts would
|
|
5089
|
+
* refuse exactly where the read accepts. All four sites are ENUM-valued
|
|
5090
|
+
* (`Status` / `IncludedObjectVersions`), so `coerceNumber` is wrong for them
|
|
5091
|
+
* by the rule in `config-shape.ts`'s header — a number where an enum belongs
|
|
5092
|
+
* is a bug. A site that ever needs an option must thread the SAME bag here.
|
|
5093
|
+
*/
|
|
5094
|
+
skipOnUnusableConfigString(container, key, fallback, containerPath, skipClause, onUnusable) {
|
|
5095
|
+
if (!onUnusable) return false;
|
|
5096
|
+
const refusal = configStringRefusal(container, key, fallback, containerPath);
|
|
5097
|
+
if (refusal === void 0) return false;
|
|
5098
|
+
onUnusable(`${refusal}. ${skipClause}; the same value is REFUSED on a template-path create`);
|
|
5099
|
+
return true;
|
|
5100
|
+
}
|
|
5101
|
+
/**
|
|
5068
5102
|
* Apply lifecycle configuration
|
|
5069
5103
|
*
|
|
5070
5104
|
* CFn property: LifecycleConfiguration.Rules[]
|
|
@@ -5083,6 +5117,7 @@ var S3BucketProvider = class S3BucketProvider {
|
|
|
5083
5117
|
if (rawTagFilters != null) {
|
|
5084
5118
|
if (requireConfigArray(rawTagFilters, "AWS::S3::Bucket LifecycleConfiguration.Rules[].TagFilters", { ...onUnusable ? { onUnusable } : {} }) === void 0) return;
|
|
5085
5119
|
}
|
|
5120
|
+
if (this.skipOnUnusableConfigString(rule, "Status", "Enabled", "AWS::S3::Bucket LifecycleConfiguration.Rules[]", "Leaving the whole lifecycle configuration unapplied here", onUnusable)) return;
|
|
5086
5121
|
}
|
|
5087
5122
|
const gatherScope = (rule) => {
|
|
5088
5123
|
const filter = rule["Filter"];
|
|
@@ -5511,6 +5546,7 @@ var S3BucketProvider = class S3BucketProvider {
|
|
|
5511
5546
|
async applyIntelligentTieringConfigurations(bucketName, configs, onUnusable) {
|
|
5512
5547
|
for (const config of configs) {
|
|
5513
5548
|
const id = config["Id"];
|
|
5549
|
+
if (this.skipOnUnusableConfigString(config, "Status", "Enabled", "AWS::S3::Bucket IntelligentTieringConfigurations[]", "Skipping this intelligent tiering configuration", onUnusable)) continue;
|
|
5514
5550
|
const tierings = config["Tierings"];
|
|
5515
5551
|
const itConfig = {
|
|
5516
5552
|
Id: id,
|
|
@@ -5547,6 +5583,7 @@ var S3BucketProvider = class S3BucketProvider {
|
|
|
5547
5583
|
async applyInventoryConfigurations(bucketName, configs, onUnusable) {
|
|
5548
5584
|
for (const config of configs) {
|
|
5549
5585
|
const id = config["Id"];
|
|
5586
|
+
if (this.skipOnUnusableConfigString(config, "IncludedObjectVersions", "All", "AWS::S3::Bucket InventoryConfigurations[]", "Skipping this inventory configuration", onUnusable)) continue;
|
|
5550
5587
|
const inventoryDestPath = "AWS::S3::Bucket InventoryConfigurations[].Destination";
|
|
5551
5588
|
const rawDest = config["Destination"];
|
|
5552
5589
|
const s3Dest = this.resolveS3BucketDestination(rawDest, inventoryDestPath, onUnusable);
|
|
@@ -5635,6 +5672,7 @@ var S3BucketProvider = class S3BucketProvider {
|
|
|
5635
5672
|
for (const rule of rules || []) {
|
|
5636
5673
|
const rawFilter = rule["Filter"];
|
|
5637
5674
|
if (rawFilter != null && requireConfigObject(rawFilter, "AWS::S3::Bucket ReplicationConfiguration.Rules[].Filter", { ...onUnusable ? { onUnusable } : {} }) === void 0) return;
|
|
5675
|
+
if (this.skipOnUnusableConfigString(rule, "Status", "Enabled", "AWS::S3::Bucket ReplicationConfiguration.Rules[]", "Leaving the whole replication configuration unapplied here", onUnusable)) return;
|
|
5638
5676
|
}
|
|
5639
5677
|
await this.s3Client.send(new PutBucketReplicationCommand({
|
|
5640
5678
|
Bucket: bucketName,
|
|
@@ -69187,7 +69225,7 @@ function createMigrateCommand() {
|
|
|
69187
69225
|
*/
|
|
69188
69226
|
function buildProgram() {
|
|
69189
69227
|
const program = new Command();
|
|
69190
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.280.
|
|
69228
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.280.14");
|
|
69191
69229
|
program.hook("preAction", (_thisCommand, actionCommand) => {
|
|
69192
69230
|
const { profile } = actionCommand.optsWithGlobals();
|
|
69193
69231
|
if (profile !== void 0) process.env["AWS_PROFILE"] = profile;
|