All checks
High BedrockAgentCore · regional

Bedrock AgentCore runtimes should be configured with VPC network mode

Checks that an Amazon Bedrock AgentCore runtime uses VPC network mode, and fails one set to PUBLIC. A PUBLIC runtime talks to the internet directly; in VPC mode its traffic leaves through network interfaces in your subnets, where security groups, network ACLs and VPC flow logs apply.

service
BedrockAgentCore
severity
High
scope
evaluated in every region

How to fix it

  • Can break clients: In VPC mode the runtime has no internet access, even from a public subnet, so it needs a NAT gateway for the internet and VPC endpoints or NAT for its ECR image and CloudWatch Logs.

In the console

Bedrock AgentCore → Agent runtimes → the runtime → Network configuration → VPC

Network configuration
VPC
Subnets
Private subnets in at least two Availability Zones that AgentCore supports in this Region
Security groups
Outbound rules for only what the agent must reach

With the AWS CLI

  • Overwrites existing settings: The CLI call replaces the runtime's configuration rather than merging it, so read it with get-agent-runtime first and resupply its environment variables, authorizer and protocol settings.
aws bedrock-agentcore-control update-agent-runtime --agent-runtime-id <agent-runtime-id> --role-arn <execution-role-arn> --agent-runtime-artifact '{"containerConfiguration":{"containerUri":"<container-image-uri>"}}' --network-configuration '{"networkMode":"VPC","networkModeConfig":{"subnets":["<subnet-id>"],"securityGroups":["<security-group-id>"]}}' --region <region>

With Terraform

resource "aws_bedrockagentcore_agent_runtime" "this" {
  agent_runtime_name = var.agent_runtime_name
  role_arn           = var.role_arn

  agent_runtime_artifact {
    container_configuration {
      container_uri = var.container_image_uri
    }
  }

  network_configuration {
    network_mode = "VPC"

    network_mode_config {
      security_groups = var.security_group_ids
      subnets         = var.subnet_ids
    }
  }
}

See which of your accounts this check is failing on.

Book a live scan