Skip to Content

AWS AgentCore Runtime

Set up the agent runtime and the AWS access key that let Sandcovery run sandboxes as AgentCore Runtime sessions in your own AWS account.

Sandcovery runs each sandbox as a session of an AgentCore Runtime agent that you deploy in your AWS account, and runs its commands through InvokeAgentRuntimeCommand. Sandcovery wrote this adapter from AWS's public docs and has not run it against AWS.

What runs

OptionSupport
Size2x8 only
Egressallow_all only, from PUBLIC mode
LifetimeUp to 8 hours
Pause and resumeNo
Command timeoutUp to 3,600 seconds
RegionYour runtime's region

Snapshots, port previews, custom images per sandbox, environment variables set at create, disk sizes, idle timeouts, and GPUs are not available on this provider. Each command, with the environment values and working directory Sandcovery puts in it, goes to your runtime's CloudWatch Logs log group, as AWS's command docs state.

Deploy the agent runtime

Deploy an agent on AgentCore Runtime microVMs, as AWS's getting started guide shows, with these settings:

  • Platform version V1, the default, which Sandcovery's prices assume.
  • Network mode PUBLIC.
  • No resource configuration, so each session runs 2 vCPU and 8 GB.
  • Lifecycle settings idleRuntimeSessionTimeout and maxLifetime both at 28800, as AWS's lifecycle docs show, since the default idle timeout of 900 seconds ends an idle sandbox.
  • An image that holds /bin/sh, base64, head, tail, and GNU find, as Debian and Ubuntu images do.

An agent deployed before March 17, 2026 runs commands only after you redeploy it.

Create the access key

Create an IAM user with this policy, with your runtime's ARN in both resources, then create an access key for it. The policy allows only the two calls Sandcovery makes, on that runtime alone.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "bedrock-agentcore:InvokeAgentRuntimeCommand",
        "bedrock-agentcore:StopRuntimeSession"
      ],
      "Resource": [
        "arn:aws:bedrock-agentcore:us-west-2:111122223333:runtime/my_agent-ABCDE12345",
        "arn:aws:bedrock-agentcore:us-west-2:111122223333:runtime/my_agent-ABCDE12345/runtime-endpoint/DEFAULT"
      ]
    }
  ]
}

Add the credential

In Provider Credentials in the dashboard, add these three fields for AWS AgentCore Runtime:

  • Access key ID
  • Secret access key
  • Agent runtime ARN

Costs

AWS bills runtime sessions to your AWS account, for the CPU a session uses and its memory, per second. Sandcovery's estimates and spend limits count a 2x8 session at full use at the Runtime v1 list price, so a session below full use costs less.