
Trying Out the x86_64 Architecture Now Supported by Amazon Bedrock AgentCore Runtime
This page has been translated by machine translation. View original
Introduction
On November 29, 2026, Amazon Bedrock AgentCore Runtime v2 added support for the x86 (x86_64) architecture.
In this article, I verified that you can create and run an x86_64 Runtime from an amd64 container image.
Test Environment
- Region: Tokyo (ap-northeast-1)
- Build environment: docker buildx on an aarch64 host. Built for linux/amd64 using QEMU emulation
- Base image: Amazon Linux 2023 (amd64)
- Python in the container image: 3.11 (installed with dnf)
- AWS CLI: 2.42.7
Building the x86_64 Image and Pushing to ECR
Prepare a minimal agent. Save Dockerfile and app.py in the same directory.
FROM --platform=linux/amd64 public.ecr.aws/amazonlinux/amazonlinux:2023
WORKDIR /app
RUN dnf install -y python3.11 && dnf clean all
COPY app.py .
EXPOSE 8080
CMD ["python3.11", "app.py"]
app.py is an HTTP server written using only the standard library. When it receives a POST to /invocations, it returns JSON containing the value of platform.machine().
app.py
import json
import platform
from http.server import BaseHTTPRequestHandler, HTTPServer
class Handler(BaseHTTPRequestHandler):
def _send(self, status, body):
data = json.dumps(body).encode()
self.send_response(status)
self.send_header("Content-Type", "application/json")
self.send_header("Content-Length", str(len(data)))
self.end_headers()
self.wfile.write(data)
def do_GET(self):
if self.path == "/ping":
self._send(200, {"status": "Healthy"})
else:
self._send(404, {"error": "not found"})
def do_POST(self):
if self.path == "/invocations":
length = int(self.headers.get("Content-Length", 0))
self.rfile.read(length)
self._send(200, {"machine": platform.machine(), "system": platform.system()})
else:
self._send(404, {"error": "not found"})
HTTPServer(("0.0.0.0", 8080), Handler).serve_forever()
Run the following in order: create the ECR repository, build, log in, and push.
aws ecr create-repository --repository-name devio-x86-verify --region ap-northeast-1
docker buildx build --platform linux/amd64 --load -t 123456789012.dkr.ecr.ap-northeast-1.amazonaws.com/devio-x86-verify:v1 .
aws ecr get-login-password --region ap-northeast-1 | docker login --username AWS --password-stdin 123456789012.dkr.ecr.ap-northeast-1.amazonaws.com
docker push 123456789012.dkr.ecr.ap-northeast-1.amazonaws.com/devio-x86-verify:v1
Creating the x86_64 Runtime
The Runtime uses an execution role to pull the image from ECR.
Creating the execution role
Save the trust policy as trust-policy.json.
{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Principal":{"Service":"bedrock-agentcore.amazonaws.com"},"Action":"sts:AssumeRole","Condition":{"StringEquals":{"aws:SourceAccount":"123456789012"}}}]}
Save the role policy as role-policy.json.
{"Version":"2012-10-17","Statement":[
{"Effect":"Allow","Action":["ecr:BatchGetImage","ecr:GetDownloadUrlForLayer"],"Resource":"arn:aws:ecr:ap-northeast-1:123456789012:repository/devio-x86-verify"},
{"Effect":"Allow","Action":"ecr:GetAuthorizationToken","Resource":"*"},
{"Effect":"Allow","Action":["logs:CreateLogGroup","logs:CreateLogStream","logs:PutLogEvents","logs:DescribeLogStreams"],"Resource":"arn:aws:logs:ap-northeast-1:123456789012:log-group:/aws/bedrock-agentcore/runtimes/*"}
]}
Run the following in the directory where you placed the two files.
aws iam create-role --role-name devio-x86-verify-role --assume-role-policy-document file://trust-policy.json
aws iam put-role-policy --role-name devio-x86-verify-role --policy-name devio-x86-verify-policy --policy-document file://role-policy.json
To create an x86_64 Runtime, specify the following two options.
--platform-version V2--cpu-configurations '[{"architecture":"X86_64"}]'
Set the environment variable IMAGE_URI to the URI of the pushed image and ROLE_ARN to the ARN of the execution role, then create the Runtime.
export IMAGE_URI=123456789012.dkr.ecr.ap-northeast-1.amazonaws.com/devio-x86-verify:v1
export ROLE_ARN=arn:aws:iam::123456789012:role/devio-x86-verify-role
aws bedrock-agentcore-control create-agent-runtime \
--agent-runtime-name devio_x86_verify \
--agent-runtime-artifact "{\"containerConfiguration\":{\"containerUri\":\"$IMAGE_URI\"}}" \
--role-arn "$ROLE_ARN" \
--network-configuration '{"networkMode":"PUBLIC"}' \
--platform-version V2 \
--cpu-configurations '[{"architecture":"X86_64"}]'
The CreateAgentRuntime response had a status of CREATING and did not include cpuConfigurations. Use GetAgentRuntime to check the configuration.
Run get-agent-runtime at 10-second intervals until the status becomes READY. Set the environment variable RUNTIME_ID to the agentRuntimeId shown in the output of create-agent-runtime.
export RUNTIME_ID=<agentRuntimeId>
for i in $(seq 1 60); do
STATUS=$(aws bedrock-agentcore-control get-agent-runtime --agent-runtime-id "$RUNTIME_ID" --query status --output text)
echo "$(date -u +%H:%M:%S) $STATUS"
[ "$STATUS" = READY ] || [ "$STATUS" = CREATE_FAILED ] && break
sleep 10
done
aws bedrock-agentcore-control get-agent-runtime --agent-runtime-id "$RUNTIME_ID"
It took 3 minutes 19 seconds from creation to READY.
Below are the platformVersion and cpuConfigurations portions extracted from the GetAgentRuntime response after it became READY. They contained the values specified at creation.
"platformVersion": "V2",
"cpuConfigurations": [
{
"architecture": "X86_64"
}
]
Invoking the Runtime
Invoke the Runtime with invoke-agent-runtime. Set the environment variable RUNTIME_ARN to the agentRuntimeArn shown in the output of create-agent-runtime, then run it. The response body is saved to the file specified as the last argument.
export RUNTIME_ARN=<agentRuntimeArn>
aws bedrock-agentcore invoke-agent-runtime \
--agent-runtime-arn "$RUNTIME_ARN" \
--runtime-session-id "$(cat /proc/sys/kernel/random/uuid)-x86-verify" \
--cli-binary-format raw-in-base64-out \
--payload '{"prompt": "hello"}' \
response.json
cat response.json
When I ran it, the following was displayed.
{
"runtimeSessionId": "<UUID>-x86-verify",
"contentType": "application/json",
"statusCode": 200
}
{"machine": "x86_64", "system": "Linux"}
Pricing
As of November 30, 2026, in the Tokyo Region, Runtime v2 consumption-based pricing is about 18% higher for x86 than for ARM64. I retrieved the prices with the AWS Price List API.
| Usage type (usagetype) | Price |
|---|---|
| APN1-Runtime:Consumption-based:vCPU-v2 | 0.1276 USD / vCPU-hour |
| APN1-Runtime:Consumption-based:vCPU-v2-x86 | 0.1505 USD / vCPU-hour |
| APN1-Runtime:Consumption-based:Memory-v2 | 0.0169 USD / GB-hour |
| APN1-Runtime:Consumption-based:Memory-v2-x86 | 0.0199 USD / GB-hour |
Specify the usage type in Value to retrieve it.
aws pricing get-products --region us-east-1 \
--service-code AmazonBedrockAgentCore \
--filters Type=TERM_MATCH,Field=usagetype,Value=APN1-Runtime:Consumption-based:vCPU-v2-x86 \
--query 'PriceList' --output text
Summary
I was able to confirm the behavior of AgentCore Runtime v2 with x86 (x86_64) architecture support.
Previously only ARM64 was supported, but x86 is now supported as well. Being able to bring in x86 binaries and avoiding cross-compilation when your development environment is x86 can be expected to improve development efficiency.
In terms of cost, the existing ARM64 is cheaper. If you have no problems with an ARM64 environment, I recommend continuing to use that architecture as is.
