@go-to-k/cdkd 0.21.0 → 0.22.0
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 +200 -1
- package/dist/cli.js.map +2 -2
- package/dist/go-to-k-cdkd-0.22.0.tgz +0 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/dist/go-to-k-cdkd-0.21.0.tgz +0 -0
package/dist/cli.js
CHANGED
|
@@ -7749,6 +7749,27 @@ var CustomResourceProvider = class _CustomResourceProvider {
|
|
|
7749
7749
|
sleep(ms) {
|
|
7750
7750
|
return new Promise((resolve4) => setTimeout(resolve4, ms));
|
|
7751
7751
|
}
|
|
7752
|
+
/**
|
|
7753
|
+
* Adopt an existing custom resource into cdkd state.
|
|
7754
|
+
*
|
|
7755
|
+
* **Explicit override only.** A custom resource's identity is the
|
|
7756
|
+
* `PhysicalResourceId` returned by its user-supplied Lambda handler at
|
|
7757
|
+
* Create time — there is no AWS-side resource cdkd can introspect, no
|
|
7758
|
+
* tag API, and no `aws:cdk:path` to look up by. cdkd cannot rediscover
|
|
7759
|
+
* a custom resource without invoking the handler, which would mutate
|
|
7760
|
+
* state.
|
|
7761
|
+
*
|
|
7762
|
+
* Users adopting an existing custom resource should pass
|
|
7763
|
+
* `--resource <logicalId>=<physicalResourceId>` — the same value the
|
|
7764
|
+
* handler returned originally.
|
|
7765
|
+
*/
|
|
7766
|
+
// eslint-disable-next-line @typescript-eslint/require-await -- explicit-override-only intentionally has no AWS calls
|
|
7767
|
+
async import(input) {
|
|
7768
|
+
if (input.knownPhysicalId) {
|
|
7769
|
+
return { physicalId: input.knownPhysicalId, attributes: {} };
|
|
7770
|
+
}
|
|
7771
|
+
return null;
|
|
7772
|
+
}
|
|
7752
7773
|
};
|
|
7753
7774
|
|
|
7754
7775
|
// src/provisioning/provider-registry.ts
|
|
@@ -11372,6 +11393,25 @@ var S3BucketPolicyProvider = class {
|
|
|
11372
11393
|
);
|
|
11373
11394
|
}
|
|
11374
11395
|
}
|
|
11396
|
+
/**
|
|
11397
|
+
* Adopt an existing S3 bucket policy into cdkd state.
|
|
11398
|
+
*
|
|
11399
|
+
* **Explicit override only.** An `S3::BucketPolicy` is a policy document
|
|
11400
|
+
* attached to a bucket via `PutBucketPolicy` — it has no standalone
|
|
11401
|
+
* identity and is not independently taggable. There is no `aws:cdk:path`
|
|
11402
|
+
* tag to look up by; only the bucket itself is taggable.
|
|
11403
|
+
*
|
|
11404
|
+
* Users adopting an existing bucket policy should pass
|
|
11405
|
+
* `--resource <logicalId>=<bucketName>` (matching the physical id
|
|
11406
|
+
* format returned by `create()`).
|
|
11407
|
+
*/
|
|
11408
|
+
// eslint-disable-next-line @typescript-eslint/require-await -- explicit-override-only intentionally has no AWS calls
|
|
11409
|
+
async import(input) {
|
|
11410
|
+
if (input.knownPhysicalId) {
|
|
11411
|
+
return { physicalId: input.knownPhysicalId, attributes: {} };
|
|
11412
|
+
}
|
|
11413
|
+
return null;
|
|
11414
|
+
}
|
|
11375
11415
|
};
|
|
11376
11416
|
|
|
11377
11417
|
// src/provisioning/providers/sqs-queue-provider.ts
|
|
@@ -11808,6 +11848,25 @@ var SQSQueuePolicyProvider = class {
|
|
|
11808
11848
|
);
|
|
11809
11849
|
}
|
|
11810
11850
|
}
|
|
11851
|
+
/**
|
|
11852
|
+
* Adopt an existing SQS queue policy into cdkd state.
|
|
11853
|
+
*
|
|
11854
|
+
* **Explicit override only.** A `QueuePolicy` is an attachment applied to
|
|
11855
|
+
* a queue via `SetQueueAttributes(Policy=...)` — it has no standalone
|
|
11856
|
+
* identity and is not independently taggable. There is no `aws:cdk:path`
|
|
11857
|
+
* tag to look up by; only the queue itself is taggable.
|
|
11858
|
+
*
|
|
11859
|
+
* Users adopting an existing queue policy should pass
|
|
11860
|
+
* `--resource <logicalId>=<queueUrl>` (matching the physical id format
|
|
11861
|
+
* returned by `create()`, which uses the first queue URL).
|
|
11862
|
+
*/
|
|
11863
|
+
// eslint-disable-next-line @typescript-eslint/require-await -- explicit-override-only intentionally has no AWS calls
|
|
11864
|
+
async import(input) {
|
|
11865
|
+
if (input.knownPhysicalId) {
|
|
11866
|
+
return { physicalId: input.knownPhysicalId, attributes: {} };
|
|
11867
|
+
}
|
|
11868
|
+
return null;
|
|
11869
|
+
}
|
|
11811
11870
|
};
|
|
11812
11871
|
|
|
11813
11872
|
// src/provisioning/providers/sns-topic-provider.ts
|
|
@@ -12300,6 +12359,25 @@ var SNSSubscriptionProvider = class {
|
|
|
12300
12359
|
);
|
|
12301
12360
|
}
|
|
12302
12361
|
}
|
|
12362
|
+
/**
|
|
12363
|
+
* Adopt an existing SNS subscription into cdkd state.
|
|
12364
|
+
*
|
|
12365
|
+
* **Explicit override only.** SNS subscriptions are attached to a parent
|
|
12366
|
+
* topic and identified by their `SubscriptionArn`, but the SubscribeAPI
|
|
12367
|
+
* does not accept tags and the AWS tag APIs do not cover subscriptions
|
|
12368
|
+
* (only Topics are taggable). There is therefore no `aws:cdk:path` tag
|
|
12369
|
+
* we could use for auto-lookup.
|
|
12370
|
+
*
|
|
12371
|
+
* Users adopting an existing subscription should pass
|
|
12372
|
+
* `--resource <logicalId>=<subscriptionArn>`.
|
|
12373
|
+
*/
|
|
12374
|
+
// eslint-disable-next-line @typescript-eslint/require-await -- explicit-override-only intentionally has no AWS calls
|
|
12375
|
+
async import(input) {
|
|
12376
|
+
if (input.knownPhysicalId) {
|
|
12377
|
+
return { physicalId: input.knownPhysicalId, attributes: {} };
|
|
12378
|
+
}
|
|
12379
|
+
return null;
|
|
12380
|
+
}
|
|
12303
12381
|
};
|
|
12304
12382
|
|
|
12305
12383
|
// src/provisioning/providers/sns-topic-policy-provider.ts
|
|
@@ -12439,6 +12517,26 @@ var SNSTopicPolicyProvider = class {
|
|
|
12439
12517
|
}
|
|
12440
12518
|
this.logger.debug(`Successfully deleted SNS topic policy ${logicalId}`);
|
|
12441
12519
|
}
|
|
12520
|
+
/**
|
|
12521
|
+
* Adopt an existing SNS topic policy into cdkd state.
|
|
12522
|
+
*
|
|
12523
|
+
* **Explicit override only.** A `TopicPolicy` is an attachment to one or
|
|
12524
|
+
* more SNS topics applied via `SetTopicAttributes(AttributeName=Policy)` —
|
|
12525
|
+
* it has no standalone identity and is not independently taggable. There
|
|
12526
|
+
* is no `aws:cdk:path` tag to look up by, and the policy has no name/ARN
|
|
12527
|
+
* of its own.
|
|
12528
|
+
*
|
|
12529
|
+
* Users adopting an existing topic policy should pass
|
|
12530
|
+
* `--resource <logicalId>=<comma-joined-topic-ARNs>` (matching the
|
|
12531
|
+
* physical id format returned by `create()`).
|
|
12532
|
+
*/
|
|
12533
|
+
// eslint-disable-next-line @typescript-eslint/require-await -- explicit-override-only intentionally has no AWS calls
|
|
12534
|
+
async import(input) {
|
|
12535
|
+
if (input.knownPhysicalId) {
|
|
12536
|
+
return { physicalId: input.knownPhysicalId, attributes: {} };
|
|
12537
|
+
}
|
|
12538
|
+
return null;
|
|
12539
|
+
}
|
|
12442
12540
|
/**
|
|
12443
12541
|
* Set the policy on a single SNS topic
|
|
12444
12542
|
*/
|
|
@@ -13294,6 +13392,26 @@ var LambdaPermissionProvider = class {
|
|
|
13294
13392
|
);
|
|
13295
13393
|
}
|
|
13296
13394
|
}
|
|
13395
|
+
/**
|
|
13396
|
+
* Adopt an existing Lambda permission into cdkd state.
|
|
13397
|
+
*
|
|
13398
|
+
* **Explicit override only.** A `Lambda::Permission` is a single statement
|
|
13399
|
+
* within a function's resource-based policy added via `AddPermission`. It
|
|
13400
|
+
* has no independent ARN, no taggable identity, and the only way to find
|
|
13401
|
+
* it is to call `GetPolicy` on the parent function and parse the JSON
|
|
13402
|
+
* statements — which the user knows by `StatementId` already.
|
|
13403
|
+
*
|
|
13404
|
+
* Users adopting an existing permission should pass
|
|
13405
|
+
* `--resource <logicalId>=<statementId>` (matching the physical id
|
|
13406
|
+
* format returned by `create()`).
|
|
13407
|
+
*/
|
|
13408
|
+
// eslint-disable-next-line @typescript-eslint/require-await -- explicit-override-only intentionally has no AWS calls
|
|
13409
|
+
async import(input) {
|
|
13410
|
+
if (input.knownPhysicalId) {
|
|
13411
|
+
return { physicalId: input.knownPhysicalId, attributes: { Id: input.knownPhysicalId } };
|
|
13412
|
+
}
|
|
13413
|
+
return null;
|
|
13414
|
+
}
|
|
13297
13415
|
};
|
|
13298
13416
|
|
|
13299
13417
|
// src/provisioning/providers/lambda-url-provider.ts
|
|
@@ -13427,6 +13545,26 @@ var LambdaUrlProvider = class {
|
|
|
13427
13545
|
);
|
|
13428
13546
|
}
|
|
13429
13547
|
}
|
|
13548
|
+
/**
|
|
13549
|
+
* Adopt an existing Lambda Function URL into cdkd state.
|
|
13550
|
+
*
|
|
13551
|
+
* **Explicit override only.** A `Lambda::Url` is a configuration attached
|
|
13552
|
+
* to a Lambda function — it has no standalone identity (the natural
|
|
13553
|
+
* physical id is the parent function's ARN/name) and `FunctionUrlConfig`
|
|
13554
|
+
* is not independently taggable. There is no `aws:cdk:path` tag to look
|
|
13555
|
+
* up by; only the parent function carries the CDK path tag.
|
|
13556
|
+
*
|
|
13557
|
+
* Users adopting an existing function URL should pass
|
|
13558
|
+
* `--resource <logicalId>=<functionArnOrName>` (matching the physical id
|
|
13559
|
+
* format returned by `create()`).
|
|
13560
|
+
*/
|
|
13561
|
+
// eslint-disable-next-line @typescript-eslint/require-await -- explicit-override-only intentionally has no AWS calls
|
|
13562
|
+
async import(input) {
|
|
13563
|
+
if (input.knownPhysicalId) {
|
|
13564
|
+
return { physicalId: input.knownPhysicalId, attributes: {} };
|
|
13565
|
+
}
|
|
13566
|
+
return null;
|
|
13567
|
+
}
|
|
13430
13568
|
/**
|
|
13431
13569
|
* Build CORS configuration from CDK properties
|
|
13432
13570
|
*/
|
|
@@ -13669,6 +13807,27 @@ var LambdaEventSourceMappingProvider = class {
|
|
|
13669
13807
|
);
|
|
13670
13808
|
}
|
|
13671
13809
|
}
|
|
13810
|
+
/**
|
|
13811
|
+
* Adopt an existing Lambda event source mapping into cdkd state.
|
|
13812
|
+
*
|
|
13813
|
+
* **Explicit override only.** Event source mappings are identified by a
|
|
13814
|
+
* UUID returned at create time. While Lambda event source mappings ARE
|
|
13815
|
+
* taggable since 2020, CDK does NOT propagate the `aws:cdk:path` tag to
|
|
13816
|
+
* them by default (the `Tags` property must be explicitly opted into),
|
|
13817
|
+
* and the natural lookup is by `(FunctionName, EventSourceArn)` — which
|
|
13818
|
+
* the user already knows.
|
|
13819
|
+
*
|
|
13820
|
+
* Users adopting an existing event source mapping should pass
|
|
13821
|
+
* `--resource <logicalId>=<UUID>` (matching the physical id format
|
|
13822
|
+
* returned by `create()`).
|
|
13823
|
+
*/
|
|
13824
|
+
// eslint-disable-next-line @typescript-eslint/require-await -- explicit-override-only intentionally has no AWS calls
|
|
13825
|
+
async import(input) {
|
|
13826
|
+
if (input.knownPhysicalId) {
|
|
13827
|
+
return { physicalId: input.knownPhysicalId, attributes: { Id: input.knownPhysicalId } };
|
|
13828
|
+
}
|
|
13829
|
+
return null;
|
|
13830
|
+
}
|
|
13672
13831
|
};
|
|
13673
13832
|
|
|
13674
13833
|
// src/provisioning/providers/lambda-layer-provider.ts
|
|
@@ -19792,6 +19951,25 @@ var CloudFrontOAIProvider = class {
|
|
|
19792
19951
|
`Unsupported attribute: ${attributeName} for AWS::CloudFront::CloudFrontOriginAccessIdentity`
|
|
19793
19952
|
);
|
|
19794
19953
|
}
|
|
19954
|
+
/**
|
|
19955
|
+
* Adopt an existing CloudFront Origin Access Identity into cdkd state.
|
|
19956
|
+
*
|
|
19957
|
+
* **Explicit override only.** OAIs do not support tags — their identity
|
|
19958
|
+
* is the `CallerReference` set at create time, plus the auto-generated
|
|
19959
|
+
* `Id`. There is no `aws:cdk:path` tag API to look up by; CloudFront's
|
|
19960
|
+
* `ListCloudFrontOriginAccessIdentities` returns Id/Comment/CallerReference
|
|
19961
|
+
* but no tags.
|
|
19962
|
+
*
|
|
19963
|
+
* Users adopting an existing OAI should pass
|
|
19964
|
+
* `--resource <logicalId>=<oaiId>` (e.g. `E1ABCDEF123456`).
|
|
19965
|
+
*/
|
|
19966
|
+
// eslint-disable-next-line @typescript-eslint/require-await -- explicit-override-only intentionally has no AWS calls
|
|
19967
|
+
async import(input) {
|
|
19968
|
+
if (input.knownPhysicalId) {
|
|
19969
|
+
return { physicalId: input.knownPhysicalId, attributes: { Id: input.knownPhysicalId } };
|
|
19970
|
+
}
|
|
19971
|
+
return null;
|
|
19972
|
+
}
|
|
19795
19973
|
};
|
|
19796
19974
|
|
|
19797
19975
|
// src/provisioning/providers/cloudfront-distribution-provider.ts
|
|
@@ -20515,6 +20693,27 @@ var AgentCoreRuntimeProvider = class {
|
|
|
20515
20693
|
}
|
|
20516
20694
|
throw new Error(`Unsupported attribute: ${attributeName} for AWS::BedrockAgentCore::Runtime`);
|
|
20517
20695
|
}
|
|
20696
|
+
/**
|
|
20697
|
+
* Adopt an existing BedrockAgentCore Runtime into cdkd state.
|
|
20698
|
+
*
|
|
20699
|
+
* **Explicit override only (for now).** The BedrockAgentCore SDK does
|
|
20700
|
+
* expose `ListTagsForResource`, so a future PR could add full tag-based
|
|
20701
|
+
* auto-lookup. For this batch we keep it override-only to ship
|
|
20702
|
+
* consistently with the other batch-5 attachment-style providers; users
|
|
20703
|
+
* adopting an existing runtime should pass
|
|
20704
|
+
* `--resource <logicalId>=<agentRuntimeId>` (e.g. `runtime-12345`,
|
|
20705
|
+
* matching the physical id format returned by `create()`).
|
|
20706
|
+
*/
|
|
20707
|
+
// eslint-disable-next-line @typescript-eslint/require-await -- explicit-override-only intentionally has no AWS calls
|
|
20708
|
+
async import(input) {
|
|
20709
|
+
if (input.knownPhysicalId) {
|
|
20710
|
+
return {
|
|
20711
|
+
physicalId: input.knownPhysicalId,
|
|
20712
|
+
attributes: { AgentRuntimeId: input.knownPhysicalId }
|
|
20713
|
+
};
|
|
20714
|
+
}
|
|
20715
|
+
return null;
|
|
20716
|
+
}
|
|
20518
20717
|
};
|
|
20519
20718
|
|
|
20520
20719
|
// src/provisioning/providers/stepfunctions-provider.ts
|
|
@@ -34148,7 +34347,7 @@ function reorderArgs(argv) {
|
|
|
34148
34347
|
}
|
|
34149
34348
|
async function main() {
|
|
34150
34349
|
const program = new Command13();
|
|
34151
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.
|
|
34350
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.22.0");
|
|
34152
34351
|
program.addCommand(createBootstrapCommand());
|
|
34153
34352
|
program.addCommand(createSynthCommand());
|
|
34154
34353
|
program.addCommand(createListCommand());
|