@go-to-k/cdkd 0.184.0 → 0.185.1
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,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { _ as withSkipPrefix, a as runDockerStreaming, c as getLogger, d as getLiveRenderer, f as PATTERN_B_NAME_PROPERTIES, g as generateResourceNameWithFallback, h as generateResourceName, i as runDockerForeground, n as formatDockerLoginError, p as PATTERN_B_RESOURCE_TYPES, r as getDockerCmd, u as runStackBuffered, v as withStackName } from "./docker-cmd-iDMcWcre.js";
|
|
3
|
-
import { A as S3StateBackend, B as resolveCaptureObservedState, C as assertRegionMatch, D as DagBuilder, E as DiffCalculator, F as buildDockerImage, G as CFN_TEMPLATE_BODY_LIMIT, H as resolveStateBucketWithDefault, I as Synthesizer, J as findLargeInlineResources, K as CFN_TEMPLATE_URL_LIMIT, L as getDefaultStateBucketName, M as AssetPublisher, N as stringifyValue, O as TemplateParser, P as WorkGraph, Q as resolveBucketRegion, R as getLegacyStateBucketName, S as CloudControlProvider, T as applyRoleArnIfSet, U as resolveStateBucketWithDefaultAndSource, V as resolveSkipPrefix, W as warnDeprecatedNoPrefixCliFlag, X as AssemblyReader, Y as uploadCfnTemplate, _ as matchesCdkPath, a as withRetry, at as LocalStartServiceError, b as ProviderRegistry, bt as withErrorHandling, c as bold, ct as NestedStackChildDirectDestroyError, d as green, dt as ResourceTimeoutError, et as CdkdError, f as red, ft as ResourceUpdateNotSupportedError, g as CDK_PATH_TAG, h as collectInlinePolicyNamesManagedBySiblings, i as withResourceDeadline, it as LocalMigrateError, j as shouldRetainResource, k as LockManager, l as cyan, lt as PartialFailureError, m as IAMRoleProvider, mt as StackTerminationProtectionError, n as DEFAULT_RESOURCE_WARN_AFTER_MS, o as IMPLICIT_DELETE_DEPENDENCIES, p as yellow, pt as StackHasActiveImportsError, q as MIGRATE_TMP_PREFIX, r as DeployEngine, rt as LocalInvokeBuildError$1, s as formatResourceLine, st as MissingCdkCliError, t as DEFAULT_RESOURCE_TIMEOUT_MS, u as gray, ut as ProvisioningError, v as normalizeAwsTagsToCfn, w as IntrinsicFunctionResolver, x as findActionableSilentDrops, y as resolveExplicitPhysicalId, yt as normalizeAwsError, z as resolveApp } from "./deploy-engine-
|
|
3
|
+
import { A as S3StateBackend, B as resolveCaptureObservedState, C as assertRegionMatch, D as DagBuilder, E as DiffCalculator, F as buildDockerImage, G as CFN_TEMPLATE_BODY_LIMIT, H as resolveStateBucketWithDefault, I as Synthesizer, J as findLargeInlineResources, K as CFN_TEMPLATE_URL_LIMIT, L as getDefaultStateBucketName, M as AssetPublisher, N as stringifyValue, O as TemplateParser, P as WorkGraph, Q as resolveBucketRegion, R as getLegacyStateBucketName, S as CloudControlProvider, T as applyRoleArnIfSet, U as resolveStateBucketWithDefaultAndSource, V as resolveSkipPrefix, W as warnDeprecatedNoPrefixCliFlag, X as AssemblyReader, Y as uploadCfnTemplate, _ as matchesCdkPath, a as withRetry, at as LocalStartServiceError, b as ProviderRegistry, bt as withErrorHandling, c as bold, ct as NestedStackChildDirectDestroyError, d as green, dt as ResourceTimeoutError, et as CdkdError, f as red, ft as ResourceUpdateNotSupportedError, g as CDK_PATH_TAG, h as collectInlinePolicyNamesManagedBySiblings, i as withResourceDeadline, it as LocalMigrateError, j as shouldRetainResource, k as LockManager, l as cyan, lt as PartialFailureError, m as IAMRoleProvider, mt as StackTerminationProtectionError, n as DEFAULT_RESOURCE_WARN_AFTER_MS, o as IMPLICIT_DELETE_DEPENDENCIES, p as yellow, pt as StackHasActiveImportsError, q as MIGRATE_TMP_PREFIX, r as DeployEngine, rt as LocalInvokeBuildError$1, s as formatResourceLine, st as MissingCdkCliError, t as DEFAULT_RESOURCE_TIMEOUT_MS, u as gray, ut as ProvisioningError, v as normalizeAwsTagsToCfn, w as IntrinsicFunctionResolver, x as findActionableSilentDrops, y as resolveExplicitPhysicalId, yt as normalizeAwsError, z as resolveApp } from "./deploy-engine-CQoRvaHv.js";
|
|
4
4
|
import { a as setAwsClients, i as resetAwsClients, r as getAwsClients, t as AwsClients } from "./aws-clients-B15NAPbL.js";
|
|
5
5
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
6
6
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
@@ -7809,7 +7809,8 @@ var LambdaPermissionProvider = class {
|
|
|
7809
7809
|
"SourceAccount",
|
|
7810
7810
|
"PrincipalOrgID",
|
|
7811
7811
|
"EventSourceToken",
|
|
7812
|
-
"FunctionUrlAuthType"
|
|
7812
|
+
"FunctionUrlAuthType",
|
|
7813
|
+
"InvokedViaFunctionUrl"
|
|
7813
7814
|
])]]);
|
|
7814
7815
|
constructor() {
|
|
7815
7816
|
const awsClients = getAwsClients();
|
|
@@ -7845,6 +7846,7 @@ var LambdaPermissionProvider = class {
|
|
|
7845
7846
|
if (properties["PrincipalOrgID"]) addParams.PrincipalOrgID = properties["PrincipalOrgID"];
|
|
7846
7847
|
if (properties["EventSourceToken"]) addParams.EventSourceToken = properties["EventSourceToken"];
|
|
7847
7848
|
if (properties["FunctionUrlAuthType"]) addParams.FunctionUrlAuthType = properties["FunctionUrlAuthType"];
|
|
7849
|
+
if (properties["InvokedViaFunctionUrl"] !== void 0) addParams.InvokedViaFunctionUrl = properties["InvokedViaFunctionUrl"];
|
|
7848
7850
|
await this.lambdaClient.send(new AddPermissionCommand(addParams));
|
|
7849
7851
|
this.logger.debug(`Successfully created Lambda permission ${logicalId}: ${statementId}`);
|
|
7850
7852
|
return {
|
|
@@ -7934,6 +7936,14 @@ var LambdaPermissionProvider = class {
|
|
|
7934
7936
|
* - `Condition.ArnLike.AWS:SourceArn` → `SourceArn`.
|
|
7935
7937
|
* - `Condition.StringEquals.AWS:SourceAccount` → `SourceAccount`.
|
|
7936
7938
|
* - `Condition.StringEquals.aws:PrincipalOrgID` → `PrincipalOrgID`.
|
|
7939
|
+
* - `Condition.Bool.lambda:InvokedViaFunctionUrl == "true"` →
|
|
7940
|
+
* `InvokedViaFunctionUrl: true` (AWS encodes the CFn boolean by
|
|
7941
|
+
* injecting a `Bool` condition keyed on the `lambda:InvokedViaFunctionUrl`
|
|
7942
|
+
* IAM context key; the value comes back as the IAM-canonical string
|
|
7943
|
+
* `"true"`, not a JSON boolean — verified empirically against the live
|
|
7944
|
+
* us-east-1 endpoint, 2026-05-29). Explicit `false` is a no-op at AWS:
|
|
7945
|
+
* no Condition is injected and readback omits the key, which round-trips
|
|
7946
|
+
* to "absent" matching CFn's default.
|
|
7937
7947
|
* - `Condition.ArnLike.AWS:SourceAccount` is left alone — drift on the
|
|
7938
7948
|
* condition operator key would be confusing here.
|
|
7939
7949
|
*/
|
|
@@ -7975,6 +7985,7 @@ var LambdaPermissionProvider = class {
|
|
|
7975
7985
|
if (sourceAccount !== void 0) result["SourceAccount"] = Array.isArray(sourceAccount) ? sourceAccount[0] : sourceAccount;
|
|
7976
7986
|
const orgId = condition["StringEquals"]?.["aws:PrincipalOrgID"];
|
|
7977
7987
|
if (orgId !== void 0) result["PrincipalOrgID"] = Array.isArray(orgId) ? orgId[0] : orgId;
|
|
7988
|
+
if (condition["Bool"]?.["lambda:InvokedViaFunctionUrl"] === "true") result["InvokedViaFunctionUrl"] = true;
|
|
7978
7989
|
}
|
|
7979
7990
|
return result;
|
|
7980
7991
|
}
|
|
@@ -51536,7 +51547,7 @@ function reorderArgs(argv) {
|
|
|
51536
51547
|
*/
|
|
51537
51548
|
async function main() {
|
|
51538
51549
|
const program = new Command();
|
|
51539
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.
|
|
51550
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.185.1");
|
|
51540
51551
|
program.addCommand(createBootstrapCommand());
|
|
51541
51552
|
program.addCommand(createSynthCommand());
|
|
51542
51553
|
program.addCommand(createListCommand());
|