A JOURNAL OF ARTIFICIAL INTELLIGENCE
my ai daily

OpenAI Codex on Amazon Bedrock: IAM Identity Center, config.toml & Gateway Guide

AWS and OpenAI detail three enterprise deployment paths for running Codex locally against Sol, Terra, and Luna on Amazon Bedrock with IAM isolation and CloudWatch telemetry.

Official AWS Artificial Intelligence Blog header graphic titled OpenAI Codex on Amazon Bedrock.
Image: AWS Artificial Intelligence Blog ↗Official source image.

THE STORY IN THREE POINTS

  • AWS’s November 11 blueprint lets developers run Codex locally on workstations while routing OpenAI Sol, Terra, and Luna inference through Amazon Bedrock without standing up a separate identity stack.
  • Platform teams choose among Native AWS Access (IAM Identity Center + Okta SAML/SCIM), Amazon Bedrock AgentCore Gateway for managed Bedrock Guardrails, or existing/custom corporate LLM gateways.
  • User-level or managed ~/.codex/config.toml settings (model_provider = "amazon-bedrock") lock model routing outside git repositories, verified via a mandatory two-user identity isolation check and ADOT telemetry.

Native AWS Access vs AgentCore Gateway vs Corporate LLM Gateways

In a technical architecture guide published November 11, 2026, Amazon Web Services outlined how security and platform teams deploy OpenAI Codex across regulated engineering organizations using existing AWS accounts. Regardless of network architecture, the Codex agent continues running locally inside the developer’s workstation terminal while inference calls terminate in Amazon Bedrock for approved OpenAI models—listed in the guide as Sol, Terra, and Luna (for example openai.gpt-5.6-sol mapped to regional Bedrock inference profiles).

AWS defines three tiered integration paths based on governance requirements. Native AWS Access offers the lowest operational overhead for initial pilots by pairing workforce authentication (such as Okta via SAML and SCIM) with AWS IAM Identity Center short-lived credentials. Organizations requiring centralized request routing or Amazon Bedrock Guardrails in the inference path adopt AgentCore Gateway, while enterprises already standardized on custom LLM proxies terminate Codex directly at their existing gateway.

Step-by-step pilot validation and locking ~/.codex/config.toml

Before configuring Codex itself, AWS recommends isolating Bedrock permissions by signing into IAM Identity Center via aws sso login --profile codex-bedrock, exporting AWS_PROFILE, and testing aws bedrock-runtime converse directly against the cross-region profile (such as us.openai.gpt-5.6-sol in us-east-2). Isolating direct Bedrock connectivity first prevents IAM, region, or inference-profile entitlement errors from masking agent behavior.

Next, administrators lock provider settings inside ~/.codex/config.toml or MDM-managed user configuration—explicitly keeping model_provider = "amazon-bedrock", model = "openai.gpt-5.6-sol", and [model_providers.amazon-bedrock.aws] out of per-repository configuration files so cloned codebases cannot silently swap endpoints. Teams already tuning Codex CLI workstation setups or Codex prompt caching can apply the same AWS profile bindings without rewriting workflows.

Two-user attribution audit, ADOT telemetry and rollback

Signing in one engineer proves connectivity; signing in two separate pilot accounts proves audit isolation. AWS advises having two engineers execute the same read-only non-production Codex task and confirming that STS assumed-role sessions, Bedrock CloudTrail audit logs, and optional AWS Distro for OpenTelemetry (ADOT) traces exported to Amazon CloudWatch preserve distinct per-user attribution.

Before expanding seat assignments, platform teams also rehearse clean revocation: deleting the managed provider block or removing the IAM Identity Center group assignment and confirming subsequent Bedrock inference attempts are denied once short-lived STS tokens expire.

Sources: OpenAI Codex on Amazon Bedrock|AWS Artificial Intelligence Blog ↗

THE BROADER CONTEXT · OPENAI DOSSIER

Explore full product specifications, pricing analysis, and continuous coverage in the OpenAI Desk Hub. Independent benchmarks available on the AI Intelligence Index and Coding Agents Leaderboard.

02The next story

News

Perplexity vs ChatGPT: Web Citations, Accuracy & Search

While ChatGPT handles coding, canvases, and long-form reasoning, Perplexity queries the live web on every prompt—and an Ahrefs citation audit shows 28.6% of Perplexity’s cited URLs overlap Google’s top 10 results compared with just 8.0% for ChatGPT in-text links.

Follow your curiosity.

EXPLORE THE ARCHIVESOURCES & CONTEXT INCLUDED