Add --kms-key-arn flag to add gateway

Open
#1,653 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
76/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Quiet
Tech stack
aws, typescript
Domain
cli, cloud

Research direction

Start with AgentCoreGatewaySchema in src/schema/schemas/mcp.ts:1065 and the add gateway entry point in GatewayPrimitive.ts. Compare the existing KMS flag patterns on add dataset, add evaluator, and add policy-engine, then trace the gateway construct wiring. Done means an optional --kms-key-arn value is accepted by add gateway and reaches the CDK gateway construct without a default.

Written by the indexing model from the issue text.

Description

Summary

The AWS API CreateGateway accepts a kmsKeyArn parameter for encrypting gateway configuration at rest, but the CLI's add gateway command does not expose it.

Evidence

  • AWS: CreateGateway.kmsKeyArn — "The ARN of the AWS KMS key used to encrypt data associated with the gateway."
  • CLI: AgentCoreGatewaySchema (src/schema/schemas/mcp.ts:1065) has no KMS field; no flag in GatewayPrimitive.ts.

Proposal

Add an optional --kms-key-arn <arn> flag (no default) to add gateway, wire it to the schema and CDK gateway construct. Matches the existing pattern on add dataset, add evaluator, add policy-engine.

Dominant language
TypeScript
Stars
339
Forks
129
Avg merge
19h 21m
Merged PRs (30d)
125

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aws/agentcore-cli

All issues in aws/agentcore-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.