This service is in preview release and is subject to change.
Setting up AWS Greenlight for Agents
You need the following before you start.
-
A Mac or a Linux computer. Windows isn’t supported yet. On a Mac, install Apple’s command line tools with
xcode-select --install. On Linux, install gcc, unzip, tar, and curl. -
Rust. You build the Dogwood CLI, and for a Strands Box the Strands Box CLI, from source with Rust. The installer doesn’t install Rust. Install it with rustup from the rustup website
. curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -
A coding agent – The Kiro CLI, Claude Code, or Codex. AWS Greenlight runs on your coding agent’s model. We recommend using Claude Opus 5.5, OpenAI GPT-6.1 Sol, Claude Sonnet 5.5, or OpenAI GPT-6.1 Terra.
-
An AWS account, and an AWS CLI profile for it. To check that the profile works, run the following command. It shows your account ID.
aws sts get-caller-identity --profile your-profile -
One of the following AWS Regions: US East (N. Virginia)
us-east-1, US East (Ohio)us-east-2, US West (Oregon)us-west-2, Europe (Frankfurt)eu-central-1, Europe (Ireland)eu-west-1, Europe (Stockholm)eu-north-1, or Asia Pacific (Sydney)ap-southeast-2. -
Permission to attach an AWS Identity and Access Management (IAM) policy to the IAM user or role that your profile signs in as.
-
Your agent, behind an AgentCore gateway or in a Strands Box, as described in the following sections. If you don’t have one yet, you can try the help desk sample, which sets up a gateway for you.
AWS Greenlight sets up the following for you as you go:
-
An S3 bucket for test results, in the same AWS account and Region. When AWS Greenlight asks for one, it offers to create it, named
greenlight-results-account-id-region. You can also use a bucket that you already have. -
The IAM policies that it needs. Step 3 of the getting started procedure prints them, filled in with your details, for you to attach.
Your coding agent sends what it reads to its AI model provider. That includes your agent’s recorded tool calls, and values such as email addresses and card numbers in them. Before you use real customer data, read What leaves your computer.
If your agent uses an AgentCore gateway
The gateway must be in the same Region, and set up as follows:
-
A policy engine is attached to the gateway.
-
The gateway sends its application logs to Amazon CloudWatch Logs.
-
Your agent sends the
x-amzn-bedrock-agentcore-policy-session-idheader with every call to the gateway. Use a new ID for each task, such as a UUID.
If your gateway has no recorded calls yet, you can still start. AWS Greenlight can write policies from the rules that you give it.
If you don’t have a gateway yet, try the help desk sample. Its setup script creates a sample gateway in a test account. The gateway has nine help desk tools, a policy engine, and a week of recorded tool calls, and the sample includes two help desk procedures and a one-page quick reference. Setup creates IAM roles, an AWS Lambda function, and the gateway, so it needs an administrator role. Use a test account. Setup takes about 7 minutes, plus up to 15 minutes the first time while the gateway’s log delivery starts.
To use the sample, install AWS Greenlight first (Steps 1 and 2 of the getting started procedure). The sample comes in the toolkit zip, aws-greenlight-toolkit.zip. To get it, run the following commands. They unzip only the sample folder, so they don’t overwrite your installed ~/aws-greenlight-for-agents.
cd ~ curl -fsSLO https://downloads.aws.com/aws-greenlight/plugins/LTS/latest/aws-greenlight-toolkit.zip && unzip -qo aws-greenlight-toolkit.zip 'aws-greenlight-help-desk-sample/*'
Then follow the README.md in the ~/aws-greenlight-help-desk-sample folder to set up the sample, and come back to Step 4.
If your agent runs in a Strands Box
Set up the box as follows:
-
The box’s
box.tomlfile is on the computer that runs your coding agent. The box itself can run there or on Amazon Bedrock AgentCore Runtime. -
The Strands Box CLI, version 0.3.0, is on your
PATH. The installer doesn’t install it. To build it, clone Strands Box on GitHub, check out v0.3.0, and runcargo build --release --locked -p strands-box -p strands-box-containment. Then copystrands-box,strands-box-sock-alias, andstrands-box-contain-trampolinefromtarget/release/to a folder on yourPATH, such as~/.local/bin. -
The box writes a decision log to a local file, an S3 bucket, or Amazon CloudWatch Logs (as a box on AgentCore Runtime does). AWS Greenlight learns from this log.