View a markdown version of this page

Troubleshooting AWS Greenlight for Agents - AWS Greenlight for Agents

This service is in preview release and is subject to change.

Troubleshooting AWS Greenlight for Agents

Use the following table to resolve common issues with AWS Greenlight for Agents.

Problem What to do

A 403 error from AWS Greenlight

Your profile is missing a greenlight: action. Add the read policy from Step 3.

A test fails with results_bucket_missing or results_bucket_refused

Ask AWS Greenlight to save test results to a bucket in the project’s Region, or to create one. If it can’t write to the bucket, attach the read policy from Step 3, made with that bucket’s name.

sign in again, or your credentials have expired

Sign in again with aws login --profile your-profile, or the way that your organization uses. Then ask again.

AWS Greenlight says that the Dogwood CLI is missing

Install the Dogwood CLI. Run rustup toolchain install 1.97.1, then cargo +1.97.1 install --locked --root ~/policy-builder-deps dogwood-cli@1.1.0. If ~/policy-builder-deps/bin/dogwood is already there, add --force. AWS Greenlight looks for the Dogwood CLI in ~/policy-builder-deps/bin, so you don’t need it on your PATH. For the prerequisites and details, see Step 1 of the getting started procedure.

No tool calls in the last 7 days

Ask AWS Greenlight to look back further, up to 30 days, or to use only your documents. For a gateway, also check that it sends its logs to Amazon CloudWatch Logs, and that your agent sends the session header.

policy references unknown action in a Strands Box

Update the Strands Box CLI to version 0.3.0, the version AWS Greenlight is tested with.

Claude Code asks before every step

Claude Code is asking to run AWS Greenlight scripts. Approve, and choose not to be asked again. It still asks each time AWS Greenlight approves policies or changes what’s enforced, so that only you can confirm those steps. In dontAsk mode, Claude Code refuses those steps, so approve and enforce from another mode.

AWS Greenlight asks the same question again after you answer

Your reply had words besides the option. AWS Greenlight answers them, then asks again. To go on, reply with just the option, such as Approve.

A policy denies calls that your agent should be allowed to make

To find which policy denied the call, ask what did it deny? AWS Greenlight lists each call that your policies denied since the last deploy, and the policy that denied it. Then choose one of the following, fastest first:

  • Undo the last deploy. Type roll back. It offers one choice for each way back: Back to log only (on a gateway, when it applies), which keeps logging what your policies would deny, Back to v1 (your earlier version’s number), Enforce v1 again, Remove ours, and Keep it, which changes nothing. To go back further, type roll back again.

  • Stop all denying on a gateway, but keep logging. Ask AWS Greenlight to enforce in log only for the whole engine, and choose Log only, whole engine. This stops every policy on the gateway’s engine from denying, including policies that AWS Greenlight didn’t write. To deny again later, type switch the engine.

  • Fix one policy. Ask AWS Greenlight to change the policy, or to remove it from your set, for example remove policy 8. Then type approve and enforce the new version. On a gateway, to put a changed policy in log only, choose Choose per policy.

  • Take all of AWS Greenlight’s policies off. Type remove my policies from the gateway, and choose Remove, or Keep them to cancel. On a box, AWS Greenlight takes its block out of policy.dw.

A Strands Box has no log only mode. A change in a box takes effect from its next run. On AgentCore Runtime, redeploy your agent first.

If the call goes through an HTTP target, such as an AgentCore Runtime, no AWS Greenlight policy denied it. The gateway denies those requests by default once the engine enforces. Add a policy of your own that allows the callers and paths that you choose.

Codex can’t reach AWS

Add the settings in Step 1, under Settings for your coding agent. Then start a new session.

Kiro doesn’t load AWS Greenlight

Start Kiro with kiro-cli chat --v3, because only v3 loads AWS Greenlight. If you use a custom Kiro agent, also set includePowers to true in its configuration.

A check fails with service_unavailable

The service is busy or down. Try again later. If it keeps happening, report the request ID.

When you report a problem, include the AWS Greenlight version, the AWS Region, the step that failed, and the request ID of the call that failed. The request ID is in the service call log, in the project’s .greenlight folder.