feat: add VPC info messages to dev and invoke commands [3/3]#426
Merged
feat: add VPC info messages to dev and invoke commands [3/3]#426
Conversation
Fix NetworkModeSchema enum from PUBLIC|PRIVATE to PUBLIC|VPC to match the AWS API. Add NetworkConfigSchema for subnet and security group validation, and networkConfig field to AgentEnvSpec with cross-field validation requiring networkConfig when networkMode is VPC. Changes: - Fix NetworkModeSchema enum: PRIVATE → VPC - Add NetworkConfigSchema (subnet/SG ID regex, min/max array bounds) - Add networkConfig optional field to AgentEnvSpec - Add superRefine cross-field validation - Update LLM-compacted schema documentation - Add 13 new unit tests for VPC schema validation
Add informational messages when agents use VPC network mode: - dev command: Note that VPC networking does not apply locally - invoke command: Guidance about required VPC Endpoints (S3, ECR, Bedrock) and public internet access for non-Bedrock providers
Contributor
Coverage Report
|
aidandaly24
approved these changes
Feb 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add informational messages when working with VPC-mode agents in dev and invoke commands.
Depends on #424 (schema foundation). This PR includes those schema commits as a base.
Changes
networkMode: 'VPC', display a note that VPC networking does not apply to local developmentFiles changed (2)
src/cli/commands/dev/command.tsxsrc/cli/commands/invoke/action.tsStack
mainmainThis PR and PR 2/3 are independent — reviewable and mergeable in any order after PR 1/3.
Test plan
agentcore dev --logson a VPC-mode agent shows info noteagentcore invokeon a VPC-mode agent shows VPC Endpoint guidance