@go-to-k/cdkd 0.203.0 → 0.204.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 +12 -8
- package/dist/cli.js.map +1 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -46647,7 +46647,7 @@ async function localStartApiCommand(target, options) {
|
|
|
46647
46647
|
let profileCredsFile;
|
|
46648
46648
|
const authorizerCache = createAuthorizerCache();
|
|
46649
46649
|
const jwksCache = createJwksCache();
|
|
46650
|
-
const
|
|
46650
|
+
const jwksWarnedAt = /* @__PURE__ */ new Map();
|
|
46651
46651
|
let sigV4CredentialsLoader;
|
|
46652
46652
|
const sigV4WarnedForeignIds = /* @__PURE__ */ new Set();
|
|
46653
46653
|
const fromCfnTipEmitted = { value: false };
|
|
@@ -46811,7 +46811,7 @@ async function localStartApiCommand(target, options) {
|
|
|
46811
46811
|
port: basePort === 0 ? 0 : nextPort,
|
|
46812
46812
|
authorizerCache,
|
|
46813
46813
|
jwksCache,
|
|
46814
|
-
|
|
46814
|
+
jwksWarnedAt,
|
|
46815
46815
|
sigV4CredentialsLoader,
|
|
46816
46816
|
sigV4WarnedForeignIds,
|
|
46817
46817
|
sigV4Strict: options.strictSigv4 === true,
|
|
@@ -46858,7 +46858,7 @@ async function localStartApiCommand(target, options) {
|
|
|
46858
46858
|
port: basePort === 0 ? 0 : nextPort,
|
|
46859
46859
|
authorizerCache,
|
|
46860
46860
|
jwksCache,
|
|
46861
|
-
|
|
46861
|
+
jwksWarnedAt,
|
|
46862
46862
|
sigV4WarnedForeignIds,
|
|
46863
46863
|
sigV4Strict: options.strictSigv4 === true,
|
|
46864
46864
|
preDispatch: async (req, res) => {
|
|
@@ -49153,9 +49153,13 @@ function createLocalRunTaskCommand() {
|
|
|
49153
49153
|
* `cdkl start-service` strategy — name one or more ECS services and the engine
|
|
49154
49154
|
* boots their replicas. There is no front-door listener (services are reached
|
|
49155
49155
|
* directly via their published container ports). Mirrors `albStrategy` in
|
|
49156
|
-
* shape, with `frontDoor` omitted and `lbPortOverrides` empty.
|
|
49156
|
+
* shape, with `frontDoor` omitted and `lbPortOverrides` empty. No-arg to match
|
|
49157
|
+
* cdk-local's bundled `serviceStrategy()` signature exactly — start-service
|
|
49158
|
+
* has no per-invocation options that branch the strategy shape (unlike
|
|
49159
|
+
* `albStrategy(options)`, which threads `--lb-port` parses into
|
|
49160
|
+
* `lbPortOverrides`).
|
|
49157
49161
|
*/
|
|
49158
|
-
function serviceStrategy(
|
|
49162
|
+
function serviceStrategy() {
|
|
49159
49163
|
return {
|
|
49160
49164
|
pickEntries: (stacks) => listTargets(stacks).ecsServices,
|
|
49161
49165
|
pickerMessage: "Select one or more ECS services to run",
|
|
@@ -49182,7 +49186,7 @@ function serviceStrategy(_options) {
|
|
|
49182
49186
|
*/
|
|
49183
49187
|
function createLocalStartServiceCommand() {
|
|
49184
49188
|
const cmd = new Command("start-service").description("Run one or more AWS::ECS::Service resources locally as a long-running emulator. Spins up DesiredCount task replicas per service (clamped by --max-tasks) using the same per-task docker network + metadata sidecar pattern as `cdkd local run-task`, then keeps each replica running and restarts it on exit per --restart-policy. ^C tears every replica + sidecar + network down. Each <target> accepts a CDK display path (MyStack/MyService) or stack-qualified logical ID (MyStack:MyServiceXYZ); single-stack apps may omit the stack prefix. When two or more <target>s are supplied, every service is booted into a shared Cloud Map / Service Connect registry so peer services discover each other via docker --add-host overlay (Issue #460). Omit <targets> in an interactive terminal to multi-select the ECS services from a list.").argument("[targets...]", "One or more CDK display paths or stack-qualified logical IDs of the AWS::ECS::Service resources to run (omit to multi-select interactively in a TTY)").addOption(new Option("--from-state", "Read cdkd's S3 state for the target stack and substitute Ref / Fn::GetAtt / Fn::Sub / Fn::ImportValue / Fn::GetStackOutput intrinsics in container images, environment variables, secrets, role ARNs, and volumes. Mutually exclusive with --from-cfn-stack.").default(false)).addOption(new Option("--state-bucket <bucket>", "S3 bucket for --from-state. Falls back to CDKD_STATE_BUCKET env or cdk.json context.cdkd.stateBucket.")).addOption(new Option("--state-prefix <prefix>", "S3 key prefix for --from-state state files.").default("cdkd")).action(withErrorHandling(async (targets, options) => {
|
|
49185
|
-
await runEcsServiceEmulator(targets, options, serviceStrategy(
|
|
49189
|
+
await runEcsServiceEmulator(targets, options, serviceStrategy(), cdkdExtraStateProviders);
|
|
49186
49190
|
}));
|
|
49187
49191
|
addStartServiceSpecificOptions(cmd);
|
|
49188
49192
|
return addCommonEcsServiceOptions(cmd);
|
|
@@ -49392,7 +49396,7 @@ async function resolveInboundAuthorization(resolved, options) {
|
|
|
49392
49396
|
...authorizer.allowedClients && { allowedClients: authorizer.allowedClients },
|
|
49393
49397
|
...authorizer.allowedScopes && { allowedScopes: authorizer.allowedScopes },
|
|
49394
49398
|
...authorizer.customClaims && { customClaims: authorizer.customClaims }
|
|
49395
|
-
}, header, createJwksCache(), {
|
|
49399
|
+
}, header, createJwksCache(), { warnedAt: /* @__PURE__ */ new Map() })).allow) throw new CdkdError(`Inbound JWT rejected by the runtime's customJwtAuthorizer (signature / issuer / expiry / audience check failed against ${authorizer.discoveryUrl}).`, "LOCAL_INVOKE_AGENTCORE_AUTH_DENIED");
|
|
49396
49400
|
logger.info(`Inbound JWT verified against ${authorizer.discoveryUrl}.`);
|
|
49397
49401
|
return header;
|
|
49398
49402
|
}
|
|
@@ -51927,7 +51931,7 @@ function reorderArgs(argv) {
|
|
|
51927
51931
|
*/
|
|
51928
51932
|
async function main() {
|
|
51929
51933
|
const program = new Command();
|
|
51930
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.
|
|
51934
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.204.0");
|
|
51931
51935
|
program.addCommand(createBootstrapCommand());
|
|
51932
51936
|
program.addCommand(createSynthCommand());
|
|
51933
51937
|
program.addCommand(createListCommand());
|