Component evidence

VPC Configuration CLI Validator (shared/vpc-utils.ts)

agentcore-cli · src/cli/commands/shared/vpc-utils.ts · typescript · Apache-2.0
infraclitag:validation

Validates VPC subnet and security group configurations for agent deployments. Use this to ensure network settings are correctly formatted before provisioning cloud infrastructure.

Source preview first 800 characters · full source over MCP
// Source: https://github.com/CopilotKit/agentcore-cli | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
export interface VpcOptions {
  networkMode?: string;
  subnets?: string;
  securityGroups?: string;
}

export interface VpcValidationResult {
  valid: boolean;
  error?: string;
}

/**
 * Warning shown when an agent is configured with VPC network mode.
 * Used in CLI output, TUI completion screens, and exit messages.
 */
export const VPC_ENDPOINT_WARNING =
  'VPC mode may require VPC endpoints for CloudWatch, X-Ray, ECR, and Bedrock depending on your agent configuration. If your agent calls public APIs or uses an API-key-based provider, a NAT gateway or additional endpoints may 

... (truncated -- full source via MCP)