From 0d465e04c3319da58bc6c5bd258743365eea74fe Mon Sep 17 00:00:00 2001 From: jariy17 Date: Thu, 9 Jul 2026 20:16:13 +0000 Subject: [PATCH] Revert "feat(run): add --kms-key flag to run insights for KMS parity (#1688)" This reverts commit e61338c38d3f96462f0ccc8e46ae47c5a2a6c9f8. --- src/cli/commands/run/command.tsx | 3 --- src/cli/operations/jobs/insights/handler.ts | 1 - src/cli/operations/jobs/shared/types.ts | 2 -- 3 files changed, 6 deletions(-) diff --git a/src/cli/commands/run/command.tsx b/src/cli/commands/run/command.tsx index 20adca133..88f63c123 100644 --- a/src/cli/commands/run/command.tsx +++ b/src/cli/commands/run/command.tsx @@ -376,7 +376,6 @@ export const registerRun = (program: Command) => { .option('--wait', 'Block until the job reaches a terminal state') .option('--region ', 'AWS region (auto-detected if omitted)') .option('--endpoint ', 'Runtime endpoint name (e.g. PROMPT_V1)') - .option('--kms-key ', 'KMS key ARN for encrypting insights job results') .option('--json', 'Output as JSON') .action( async (cliOptions: { @@ -392,7 +391,6 @@ export const registerRun = (program: Command) => { wait?: boolean; region?: string; endpoint?: string; - kmsKey?: string; json?: boolean; }) => { requireProject(); @@ -426,7 +424,6 @@ export const registerRun = (program: Command) => { name: cliOptions.name, region: cliOptions.region, endpoint: cliOptions.endpoint, - kmsKeyArn: cliOptions.kmsKey, onProgress: cliOptions.json ? undefined : (_status, message) => console.log(message), }); if (!startResult.success) { diff --git a/src/cli/operations/jobs/insights/handler.ts b/src/cli/operations/jobs/insights/handler.ts index bd21a1d08..b822b8a73 100644 --- a/src/cli/operations/jobs/insights/handler.ts +++ b/src/cli/operations/jobs/insights/handler.ts @@ -142,7 +142,6 @@ export const insightsHandler: InsightsHandler = { : {}), dataSourceConfig, clientToken: generateClientToken(), - ...(opts.kmsKeyArn ? { kmsKeyArn: opts.kmsKeyArn } : {}), }); logger?.log(`Response: ${JSON.stringify(startResult, null, 2)}`); logger?.endStep('success'); diff --git a/src/cli/operations/jobs/shared/types.ts b/src/cli/operations/jobs/shared/types.ts index a036155b8..7f501c522 100644 --- a/src/cli/operations/jobs/shared/types.ts +++ b/src/cli/operations/jobs/shared/types.ts @@ -288,8 +288,6 @@ export interface StartInsightsJobOptions { name?: string; region?: string; endpoint?: string; - /** KMS key ARN for encrypting insights job results. */ - kmsKeyArn?: string; onProgress?: (status: string, message: string) => void; }