You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
dev command: When an agent has networkMode: 'VPC', display a note that VPC networking does not apply to local development
invoke command: When invoking a VPC-mode agent, display guidance about required VPC Endpoints (S3, ECR, Bedrock) and note that non-Bedrock model providers require public internet access from within the VPC
Files changed (2)
File
Change
src/cli/commands/dev/command.tsx
VPC info message in logs path and before alt screen
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
* Revert "feat: add VPC CLI flags to create and add commands [2/3] (#425)"
This reverts commit c75f4cd.
* Revert "feat: add VPC info messages to dev and invoke commands [3/3] (#426)"
This reverts commit 7a81b02.
* Revert "feat: add VPC network mode to schema (#424)"
This reverts commit 4180646.
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
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