@go-to-k/cdkd 0.100.1 → 0.100.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/README.md +5 -1
- package/dist/cli.js +2 -2
- package/dist/{deploy-engine-CYrZgRDF.js → deploy-engine-H3Nughua.js} +90 -5
- package/dist/deploy-engine-H3Nughua.js.map +1 -0
- package/dist/go-to-k-cdkd-0.100.2.tgz +0 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/deploy-engine-CYrZgRDF.js.map +0 -1
- package/dist/go-to-k-cdkd-0.100.1.tgz +0 -0
package/README.md
CHANGED
|
@@ -358,7 +358,11 @@ state.json remains the canonical source of truth, and strong-reference
|
|
|
358
358
|
safety checks scan it directly rather than trusting the index.
|
|
359
359
|
|
|
360
360
|
See **[docs/cross-stack-references.md](docs/cross-stack-references.md)**
|
|
361
|
-
for the full design (
|
|
361
|
+
for the full design (`Fn::ImportValue` strong-reference rules added in
|
|
362
|
+
state schema v4, lifecycle, locking, failure modes). State schema is at
|
|
363
|
+
v5 since v0.100.0; `DeletionPolicy` / `UpdateReplacePolicy` changes
|
|
364
|
+
between deploys are now detected and surfaced (see
|
|
365
|
+
[docs/state-management.md](docs/state-management.md)).
|
|
362
366
|
|
|
363
367
|
## Rollback behavior
|
|
364
368
|
|
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { a as setAwsClients, i as resetAwsClients, r as getAwsClients, t as AwsClients } from "./aws-clients-CuHRHcyW.js";
|
|
3
|
-
import { A as resolveCaptureObservedState, C as stringifyValue, D as getDefaultStateBucketName, E as Synthesizer, F as AssemblyReader, G as ProvisioningError, H as LocalInvokeBuildError, J as RouteDiscoveryError, K as ResourceTimeoutError, L as resolveBucketRegion, M as resolveStateBucketWithDefault, N as resolveStateBucketWithDefaultAndSource, O as getLegacyStateBucketName, P as warnDeprecatedNoPrefixCliFlag, S as AssetPublisher, T as buildDockerImage, W as PartialFailureError, X as StackTerminationProtectionError, Y as StackHasActiveImportsError, _ as DiffCalculator, a as withRetry, b as LockManager, c as collectInlinePolicyNamesManagedBySiblings, ct as PATTERN_B_NAME_PROPERTIES, d as normalizeAwsTagsToCfn, dt as generateResourceNameWithFallback, f as resolveExplicitPhysicalId, ft as withSkipPrefix, g as IntrinsicFunctionResolver, h as assertRegionMatch, i as withResourceDeadline, it as getLogger, j as resolveSkipPrefix, k as resolveApp, l as CDK_PATH_TAG, lt as PATTERN_B_RESOURCE_TYPES, m as CloudControlProvider, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nt as withErrorHandling, o as IMPLICIT_DELETE_DEPENDENCIES, ot as runStackBuffered, p as ProviderRegistry, pt as withStackName, q as ResourceUpdateNotSupportedError, r as DeployEngine, s as IAMRoleProvider, st as getLiveRenderer, t as DEFAULT_RESOURCE_TIMEOUT_MS, tt as normalizeAwsError, u as matchesCdkPath, ut as generateResourceName, v as DagBuilder, w as WorkGraph, x as S3StateBackend, y as TemplateParser, z as CdkdError } from "./deploy-engine-
|
|
3
|
+
import { A as resolveCaptureObservedState, C as stringifyValue, D as getDefaultStateBucketName, E as Synthesizer, F as AssemblyReader, G as ProvisioningError, H as LocalInvokeBuildError, J as RouteDiscoveryError, K as ResourceTimeoutError, L as resolveBucketRegion, M as resolveStateBucketWithDefault, N as resolveStateBucketWithDefaultAndSource, O as getLegacyStateBucketName, P as warnDeprecatedNoPrefixCliFlag, S as AssetPublisher, T as buildDockerImage, W as PartialFailureError, X as StackTerminationProtectionError, Y as StackHasActiveImportsError, _ as DiffCalculator, a as withRetry, b as LockManager, c as collectInlinePolicyNamesManagedBySiblings, ct as PATTERN_B_NAME_PROPERTIES, d as normalizeAwsTagsToCfn, dt as generateResourceNameWithFallback, f as resolveExplicitPhysicalId, ft as withSkipPrefix, g as IntrinsicFunctionResolver, h as assertRegionMatch, i as withResourceDeadline, it as getLogger, j as resolveSkipPrefix, k as resolveApp, l as CDK_PATH_TAG, lt as PATTERN_B_RESOURCE_TYPES, m as CloudControlProvider, n as DEFAULT_RESOURCE_WARN_AFTER_MS, nt as withErrorHandling, o as IMPLICIT_DELETE_DEPENDENCIES, ot as runStackBuffered, p as ProviderRegistry, pt as withStackName, q as ResourceUpdateNotSupportedError, r as DeployEngine, s as IAMRoleProvider, st as getLiveRenderer, t as DEFAULT_RESOURCE_TIMEOUT_MS, tt as normalizeAwsError, u as matchesCdkPath, ut as generateResourceName, v as DagBuilder, w as WorkGraph, x as S3StateBackend, y as TemplateParser, z as CdkdError } from "./deploy-engine-H3Nughua.js";
|
|
4
4
|
import { createHash, createPublicKey, createVerify, randomBytes, randomUUID } from "node:crypto";
|
|
5
5
|
import { CopyObjectCommand, CreateBucketCommand, DeleteBucketAnalyticsConfigurationCommand, DeleteBucketCommand, DeleteBucketCorsCommand, DeleteBucketIntelligentTieringConfigurationCommand, DeleteBucketInventoryConfigurationCommand, DeleteBucketLifecycleCommand, DeleteBucketMetricsConfigurationCommand, DeleteBucketPolicyCommand, DeleteBucketReplicationCommand, DeleteBucketTaggingCommand, DeleteBucketWebsiteCommand, DeleteObjectCommand, DeleteObjectsCommand, GetBucketAccelerateConfigurationCommand, GetBucketCorsCommand, GetBucketEncryptionCommand, GetBucketLifecycleConfigurationCommand, GetBucketLocationCommand, GetBucketLoggingCommand, GetBucketNotificationConfigurationCommand, GetBucketPolicyCommand, GetBucketReplicationCommand, GetBucketTaggingCommand, GetBucketVersioningCommand, GetBucketWebsiteCommand, GetObjectCommand, GetObjectLockConfigurationCommand, GetPublicAccessBlockCommand, HeadBucketCommand, ListBucketAnalyticsConfigurationsCommand, ListBucketIntelligentTieringConfigurationsCommand, ListBucketInventoryConfigurationsCommand, ListBucketMetricsConfigurationsCommand, ListBucketsCommand, ListDirectoryBucketsCommand, 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";
|
|
6
6
|
import { AddRoleToInstanceProfileCommand, AddUserToGroupCommand, AttachGroupPolicyCommand, AttachUserPolicyCommand, CreateGroupCommand, CreateInstanceProfileCommand, CreateLoginProfileCommand, CreateUserCommand, DeleteAccessKeyCommand, DeleteGroupCommand, DeleteGroupPolicyCommand, DeleteInstanceProfileCommand, DeleteLoginProfileCommand, DeleteRolePolicyCommand, DeleteUserCommand, DeleteUserPermissionsBoundaryCommand, DeleteUserPolicyCommand, DetachGroupPolicyCommand, DetachUserPolicyCommand, GetGroupCommand, GetGroupPolicyCommand, GetInstanceProfileCommand, GetRolePolicyCommand, GetUserCommand, GetUserPolicyCommand, IAMClient, ListAccessKeysCommand, ListAttachedGroupPoliciesCommand, ListAttachedUserPoliciesCommand, ListGroupPoliciesCommand, ListGroupsForUserCommand, ListInstanceProfilesCommand, ListUserPoliciesCommand, ListUserTagsCommand, ListUsersCommand, NoSuchEntityException, PutGroupPolicyCommand, PutRolePolicyCommand, PutUserPermissionsBoundaryCommand, PutUserPolicyCommand, RemoveRoleFromInstanceProfileCommand, RemoveUserFromGroupCommand, TagUserCommand, UntagUserCommand, UpdateLoginProfileCommand } from "@aws-sdk/client-iam";
|
|
@@ -42609,7 +42609,7 @@ function reorderArgs(argv) {
|
|
|
42609
42609
|
*/
|
|
42610
42610
|
async function main() {
|
|
42611
42611
|
const program = new Command();
|
|
42612
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.100.
|
|
42612
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.100.1");
|
|
42613
42613
|
program.addCommand(createBootstrapCommand());
|
|
42614
42614
|
program.addCommand(createSynthCommand());
|
|
42615
42615
|
program.addCommand(createListCommand());
|
|
@@ -5417,6 +5417,95 @@ var IntrinsicFunctionResolver = class {
|
|
|
5417
5417
|
case "PolicyId": return;
|
|
5418
5418
|
default: return physicalId;
|
|
5419
5419
|
}
|
|
5420
|
+
if (resourceType === "AWS::IAM::User") switch (attributeName) {
|
|
5421
|
+
case "Arn": return `arn:${partition}:iam::${accountId}:user/${physicalId}`;
|
|
5422
|
+
default: return physicalId;
|
|
5423
|
+
}
|
|
5424
|
+
if (resourceType === "AWS::IAM::Group") switch (attributeName) {
|
|
5425
|
+
case "Arn": return `arn:${partition}:iam::${accountId}:group/${physicalId}`;
|
|
5426
|
+
default: return physicalId;
|
|
5427
|
+
}
|
|
5428
|
+
if (resourceType === "AWS::IAM::InstanceProfile") switch (attributeName) {
|
|
5429
|
+
case "Arn": return `arn:${partition}:iam::${accountId}:instance-profile/${physicalId}`;
|
|
5430
|
+
default: return physicalId;
|
|
5431
|
+
}
|
|
5432
|
+
if (resourceType === "AWS::KMS::Key") switch (attributeName) {
|
|
5433
|
+
case "Arn": return `arn:${partition}:kms:${region}:${accountId}:key/${physicalId}`;
|
|
5434
|
+
case "KeyId": return physicalId;
|
|
5435
|
+
default: return physicalId;
|
|
5436
|
+
}
|
|
5437
|
+
if (resourceType === "AWS::Cognito::UserPool") switch (attributeName) {
|
|
5438
|
+
case "Arn": return `arn:${partition}:cognito-idp:${region}:${accountId}:userpool/${physicalId}`;
|
|
5439
|
+
default: return physicalId;
|
|
5440
|
+
}
|
|
5441
|
+
if (resourceType === "AWS::Kinesis::Stream") switch (attributeName) {
|
|
5442
|
+
case "Arn": return `arn:${partition}:kinesis:${region}:${accountId}:stream/${physicalId}`;
|
|
5443
|
+
default: return physicalId;
|
|
5444
|
+
}
|
|
5445
|
+
if (resourceType === "AWS::Events::Rule") switch (attributeName) {
|
|
5446
|
+
case "Arn": {
|
|
5447
|
+
const busRaw = resource.properties?.["EventBusName"];
|
|
5448
|
+
const bus = typeof busRaw === "string" && busRaw && busRaw !== "default" ? busRaw : "";
|
|
5449
|
+
const busName = bus.startsWith("arn:") ? bus.split("/").pop() || "" : bus;
|
|
5450
|
+
return busName ? `arn:${partition}:events:${region}:${accountId}:rule/${busName}/${physicalId}` : `arn:${partition}:events:${region}:${accountId}:rule/${physicalId}`;
|
|
5451
|
+
}
|
|
5452
|
+
default: return physicalId;
|
|
5453
|
+
}
|
|
5454
|
+
if (resourceType === "AWS::Events::EventBus") switch (attributeName) {
|
|
5455
|
+
case "Arn": return `arn:${partition}:events:${region}:${accountId}:event-bus/${physicalId}`;
|
|
5456
|
+
case "Name": return physicalId;
|
|
5457
|
+
default: return physicalId;
|
|
5458
|
+
}
|
|
5459
|
+
if (resourceType === "AWS::EFS::FileSystem") switch (attributeName) {
|
|
5460
|
+
case "Arn": return `arn:${partition}:elasticfilesystem:${region}:${accountId}:file-system/${physicalId}`;
|
|
5461
|
+
case "FileSystemId": return physicalId;
|
|
5462
|
+
default: return physicalId;
|
|
5463
|
+
}
|
|
5464
|
+
if (resourceType === "AWS::KinesisFirehose::DeliveryStream") switch (attributeName) {
|
|
5465
|
+
case "Arn": return `arn:${partition}:firehose:${region}:${accountId}:deliverystream/${physicalId}`;
|
|
5466
|
+
default: return physicalId;
|
|
5467
|
+
}
|
|
5468
|
+
if (resourceType === "AWS::CodeBuild::Project") switch (attributeName) {
|
|
5469
|
+
case "Arn": return `arn:${partition}:codebuild:${region}:${accountId}:project/${physicalId}`;
|
|
5470
|
+
default: return physicalId;
|
|
5471
|
+
}
|
|
5472
|
+
if (resourceType === "AWS::CloudTrail::Trail") switch (attributeName) {
|
|
5473
|
+
case "Arn": return `arn:${partition}:cloudtrail:${region}:${accountId}:trail/${physicalId}`;
|
|
5474
|
+
default: return physicalId;
|
|
5475
|
+
}
|
|
5476
|
+
if (resourceType === "AWS::AppSync::GraphQLApi") switch (attributeName) {
|
|
5477
|
+
case "Arn": return `arn:${partition}:appsync:${region}:${accountId}:apis/${physicalId}`;
|
|
5478
|
+
case "ApiId": return physicalId;
|
|
5479
|
+
default: return physicalId;
|
|
5480
|
+
}
|
|
5481
|
+
if (resourceType === "AWS::ServiceDiscovery::PrivateDnsNamespace") switch (attributeName) {
|
|
5482
|
+
case "Arn": return `arn:${partition}:servicediscovery:${region}:${accountId}:namespace/${physicalId}`;
|
|
5483
|
+
case "Id": return physicalId;
|
|
5484
|
+
default: return physicalId;
|
|
5485
|
+
}
|
|
5486
|
+
if (resourceType === "AWS::ServiceDiscovery::Service") switch (attributeName) {
|
|
5487
|
+
case "Arn": return `arn:${partition}:servicediscovery:${region}:${accountId}:service/${physicalId}`;
|
|
5488
|
+
case "Id": return physicalId;
|
|
5489
|
+
default: return physicalId;
|
|
5490
|
+
}
|
|
5491
|
+
if (resourceType === "AWS::CloudWatch::Alarm") switch (attributeName) {
|
|
5492
|
+
case "Arn": return `arn:${partition}:cloudwatch:${region}:${accountId}:alarm:${physicalId}`;
|
|
5493
|
+
default: return physicalId;
|
|
5494
|
+
}
|
|
5495
|
+
if (resourceType === "AWS::RDS::DBInstance" || resourceType === "AWS::DocDB::DBInstance" || resourceType === "AWS::Neptune::DBInstance") switch (attributeName) {
|
|
5496
|
+
case "DBInstanceArn":
|
|
5497
|
+
case "Arn": return `arn:${partition}:rds:${region}:${accountId}:db:${physicalId}`;
|
|
5498
|
+
default: return physicalId;
|
|
5499
|
+
}
|
|
5500
|
+
if (resourceType === "AWS::RDS::DBCluster" || resourceType === "AWS::DocDB::DBCluster" || resourceType === "AWS::Neptune::DBCluster") switch (attributeName) {
|
|
5501
|
+
case "DBClusterArn":
|
|
5502
|
+
case "Arn": return `arn:${partition}:rds:${region}:${accountId}:cluster:${physicalId}`;
|
|
5503
|
+
default: return physicalId;
|
|
5504
|
+
}
|
|
5505
|
+
if (resourceType === "AWS::S3Express::DirectoryBucket") switch (attributeName) {
|
|
5506
|
+
case "Arn": return `arn:${partition}:s3express:${region}:${accountId}:bucket/${physicalId}`;
|
|
5507
|
+
default: return physicalId;
|
|
5508
|
+
}
|
|
5420
5509
|
if (resourceType === "AWS::Lambda::Function") switch (attributeName) {
|
|
5421
5510
|
case "Arn": return `arn:${partition}:lambda:${region}:${accountId}:function:${physicalId}`;
|
|
5422
5511
|
default: return physicalId;
|
|
@@ -5456,10 +5545,6 @@ var IntrinsicFunctionResolver = class {
|
|
|
5456
5545
|
case "VpcId": return;
|
|
5457
5546
|
default: return physicalId;
|
|
5458
5547
|
}
|
|
5459
|
-
if (resourceType === "AWS::EC2::VPC") switch (attributeName) {
|
|
5460
|
-
case "VpcId": return physicalId;
|
|
5461
|
-
default: return physicalId;
|
|
5462
|
-
}
|
|
5463
5548
|
if (resourceType === "AWS::EC2::Subnet") switch (attributeName) {
|
|
5464
5549
|
case "SubnetId": return physicalId;
|
|
5465
5550
|
default: return physicalId;
|
|
@@ -9423,4 +9508,4 @@ var DeployEngine = class {
|
|
|
9423
9508
|
|
|
9424
9509
|
//#endregion
|
|
9425
9510
|
export { formatError as $, resolveCaptureObservedState as A, ConfigError as B, stringifyValue as C, getDefaultStateBucketName as D, Synthesizer as E, AssemblyReader as F, ProvisioningError as G, LocalInvokeBuildError as H, clearBucketRegionCache as I, RouteDiscoveryError as J, ResourceTimeoutError as K, resolveBucketRegion as L, resolveStateBucketWithDefault as M, resolveStateBucketWithDefaultAndSource as N, getLegacyStateBucketName as O, warnDeprecatedNoPrefixCliFlag as P, SynthesisError as Q, AssetError as R, AssetPublisher as S, buildDockerImage as T, LockError as U, DependencyError as V, PartialFailureError as W, StackTerminationProtectionError as X, StackHasActiveImportsError as Y, StateError as Z, DiffCalculator as _, withRetry as a, setLogger as at, LockManager as b, collectInlinePolicyNamesManagedBySiblings as c, PATTERN_B_NAME_PROPERTIES as ct, normalizeAwsTagsToCfn as d, generateResourceNameWithFallback as dt, isCdkdError as et, resolveExplicitPhysicalId as f, withSkipPrefix as ft, IntrinsicFunctionResolver as g, assertRegionMatch as h, withResourceDeadline as i, getLogger as it, resolveSkipPrefix as j, resolveApp as k, CDK_PATH_TAG as l, PATTERN_B_RESOURCE_TYPES as lt, CloudControlProvider as m, DEFAULT_RESOURCE_WARN_AFTER_MS as n, withErrorHandling as nt, IMPLICIT_DELETE_DEPENDENCIES as o, runStackBuffered as ot, ProviderRegistry as p, withStackName as pt, ResourceUpdateNotSupportedError as q, DeployEngine as r, ConsoleLogger as rt, IAMRoleProvider as s, getLiveRenderer as st, DEFAULT_RESOURCE_TIMEOUT_MS as t, normalizeAwsError as tt, matchesCdkPath as u, generateResourceName as ut, DagBuilder as v, WorkGraph as w, S3StateBackend as x, TemplateParser as y, CdkdError as z };
|
|
9426
|
-
//# sourceMappingURL=deploy-engine-
|
|
9511
|
+
//# sourceMappingURL=deploy-engine-H3Nughua.js.map
|