diff --git a/README.md b/README.md index e3e60209..15e1d233 100644 --- a/README.md +++ b/README.md @@ -29,10 +29,10 @@ Documentation is available at https://kiro.dev/docs/powers/ --- -### aws-devops-agent -**AWS DevOps Agent** - AI agent for AWS operational intelligence. Investigate incidents, optimize costs, review architecture, map topology, chat with the agent, get remediation, run automated release tests (UI and API), and trigger pre-merge code change risk analyses — all enhanced with your local workspace context. +### aws-ops-agent +**AWS Ops Agent** - AI agent for AWS operational intelligence. Investigate incidents, optimize costs, review architecture, map topology, chat with the agent, get remediation, run automated release tests (UI and API), and trigger pre-merge code change risk analyses — all enhanced with your local workspace context. -**MCP Servers:** aws-devops-agent (remote MCP Server, supports Bearer token + SigV4 auth), aws-mcp +**MCP Servers:** aws-ops-agent (remote MCP Server, supports Bearer token + SigV4 auth), aws-mcp --- diff --git a/aws-devops-agent/mcp.json b/aws-devops-agent/mcp.json deleted file mode 100644 index 65becde2..00000000 --- a/aws-devops-agent/mcp.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "mcpServers": { - "aws-devops-agent": { - "url": "https://connect.aidevops.${DEVOPS_AGENT_REGION}.api.aws/mcp", - "headers": { - "Authorization": "Bearer ${DEVOPS_AGENT_TOKEN}" - }, - "timeout": 120000 - }, - "aws-devops-agent-sigv4": { - "command": "uvx", - "timeout": 120000, - "args": [ - "mcp-proxy-for-aws@latest", - "https://connect.aidevops.${DEVOPS_AGENT_REGION}.api.aws/mcp", - "--service", "aidevops", - "--region", "${DEVOPS_AGENT_REGION}" - ] - }, - "aws-mcp": { - "command": "uvx", - "timeout": 100000, - "args": [ - "mcp-proxy-for-aws@latest", - "https://aws-mcp.${DEVOPS_AGENT_REGION}.api.aws/mcp", - "--metadata", "AWS_REGION=${DEVOPS_AGENT_REGION}" - ] - } - } -} diff --git a/aws-devops-agent/POWER.md b/aws-ops-agent/POWER.md similarity index 89% rename from aws-devops-agent/POWER.md rename to aws-ops-agent/POWER.md index c79b7bf8..e259bc2b 100644 --- a/aws-devops-agent/POWER.md +++ b/aws-ops-agent/POWER.md @@ -1,6 +1,6 @@ --- -name: "aws-devops-agent" -displayName: "AWS DevOps Agent" +name: "aws-ops-agent" +displayName: "AWS Ops Agent" description: "AI agent for AWS operational intelligence. Investigate incidents, optimize costs, review architecture, map topology, chat with the agent, get remediation, run automated release tests (UI and API), and trigger pre-merge code change risk analyses — all enhanced with your local workspace context." keywords: - "devops" @@ -64,11 +64,11 @@ keywords: author: "AWS" --- -# AWS DevOps Agent — Kiro Power +# AWS Ops Agent — Kiro Power -You are enhanced with the **AWS DevOps Agent**, an AI-powered operational intelligence system for AWS environments. It connects via a dedicated remote MCP server (`aws-devops-agent`) with `aws-mcp` as a fallback. +You are enhanced with the **AWS Ops Agent**, an AI-powered operational intelligence system for AWS environments. It connects via a dedicated remote MCP server (`aws-ops-agent`) with `aws-mcp` as a fallback. -**Your superpower**: Combine local workspace knowledge (files, git, terminal) with the DevOps Agent's cloud knowledge (CloudWatch, X-Ray, IAM, topology) by packing local context into tool parameters. +**Your superpower**: Combine local workspace knowledge (files, git, terminal) with the Ops Agent's cloud knowledge (CloudWatch, X-Ray, IAM, topology) by packing local context into tool parameters. **Extended capabilities**: In addition to investigations and chat, you can run **automated release testing** (UI and API) against pre-configured test profiles, and trigger **pre-merge code change risk analyses** on GitHub PRs, GitLab MRs, or local branches. @@ -78,20 +78,20 @@ You are enhanced with the **AWS DevOps Agent**, an AI-powered operational intell | Server | Transport | Auth | Role | |--------|-----------|------|------| -| `aws-devops-agent` | Remote (Streamable HTTP) | Bearer token | **Option A** — simplest setup, scoped to one AgentSpace | -| `aws-devops-agent-sigv4` | Local signing proxy (stdio) | SigV4 from AWS credentials | **Option B** — full access, multi-space routing, no token expiry | +| `aws-ops-agent` | Remote (Streamable HTTP) | Bearer token | **Option A** — simplest setup, scoped to one AgentSpace | +| `aws-ops-agent-sigv4` | Local signing proxy (stdio) | SigV4 from AWS credentials | **Option B** — full access, multi-space routing, no token expiry | | `aws-mcp` | Local (stdio) | SigV4 from environment | **Last Resort Fallback** — generic AWS API access when remote is unavailable | -Two auth options. Both connect to the same remote DevOps Agent endpoint — they differ in how they authenticate: +Two auth options. Both connect to the same remote Ops Agent endpoint — they differ in how they authenticate: - **Option A (Bearer token):** Zero local dependencies. Tools scoped by token (see "Tool Availability by Auth Mode"). Best for single AgentSpace setups. - **Option B (SigV4):** Requires `uvx` locally. All tools available (limited only by IAM policy). Best for multi-space routing or admin configuration. -> **Note:** `aws-mcp` and `aws-devops-agent-sigv4` both require `uvx` (part of `uv`). If `uvx` is not in your PATH, these servers cannot launch. +> **Note:** `aws-mcp` and `aws-ops-agent-sigv4` both require `uvx` (part of `uv`). If `uvx` is not in your PATH, these servers cannot launch. --- -## Tools (aws-devops-agent — Remote Server) +## Tools (aws-ops-agent — Remote Server) ### High-Level (start here) @@ -330,7 +330,7 @@ investigate(title="ECS 503 errors on checkout-service — OOM suspected", priori ## Fallback: When Remote Server Is Unavailable -If bearer token (`aws-devops-agent`) or SigV4 (`aws-devops-agent-sigv4`) isn't working, fall back to `aws-mcp` using the manual CLI patterns below: +If bearer token (`aws-ops-agent`) or SigV4 (`aws-ops-agent-sigv4`) isn't working, fall back to `aws-mcp` using the manual CLI patterns below: **Chat fallback:** ``` @@ -427,7 +427,7 @@ Check if `.kiro/hooks/devops-agent-post-spec-completion.kiro.hook` already exist }, "then": { "type": "askAgent", - "prompt": "A spec task just completed. Evaluate the changes made during this task. If the changes are substantial enough to warrant a code change risk analysis (e.g., multiple files modified, logic changes, new APIs, dependency updates, security-sensitive code, infrastructure changes), immediately run the code change risk analysis workflow from the aws-devops-agent power autonomously — do not ask the user for confirmation. Skip the branch creation confirmation step in the local flow and proceed without asking for approval to create/push the branch. If the changes are trivial (e.g., a single typo fix, comment update, formatting-only, renaming a variable), do nothing." + "prompt": "A spec task just completed. Evaluate the changes made during this task. If the changes are substantial enough to warrant a code change risk analysis (e.g., multiple files modified, logic changes, new APIs, dependency updates, security-sensitive code, infrastructure changes), immediately run the code change risk analysis workflow from the aws-ops-agent power autonomously — do not ask the user for confirmation. Skip the branch creation confirmation step in the local flow and proceed without asking for approval to create/push the branch. If the changes are trivial (e.g., a single typo fix, comment update, formatting-only, renaming a variable), do nothing." } } ``` @@ -440,12 +440,12 @@ Check if `.kiro/hooks/devops-agent-post-spec-completion.kiro.hook` already exist ### Recommended `autoApprove` list -These tools are read-only and cannot modify any AWS resource or DevOps Agent state: +These tools are read-only and cannot modify any AWS resource or Ops Agent state: ```json { "mcpServers": { - "aws-devops-agent": { + "aws-ops-agent": { "autoApprove": [ "list_agent_spaces", "get_agent_space", @@ -483,7 +483,7 @@ These tools are read-only and cannot modify any AWS resource or DevOps Agent sta ### What still requires approval -**aws-devops-agent**: Mutation tools (`chat`, `send_message`, `investigate`, `create_investigation`, `create_release_testing_job`, `create_code_change_risk_analysis`, `cancel_release_testing_job`, `cancel_code_change_risk_analysis`, `create_agent_space`, `update_recommendation`). +**aws-ops-agent**: Mutation tools (`chat`, `send_message`, `investigate`, `create_investigation`, `create_release_testing_job`, `create_code_change_risk_analysis`, `cancel_release_testing_job`, `cancel_code_change_risk_analysis`, `create_agent_space`, `update_recommendation`). **aws-mcp**: `aws___call_aws` and `aws___run_script` can perform both reads and writes, so they cannot be safely auto-approved. @@ -500,8 +500,8 @@ These tools are read-only and cannot modify any AWS resource or DevOps Agent sta ## Support & Legal -- **Documentation**: [AWS DevOps Agent User Guide](https://docs.aws.amazon.com/devopsagent/latest/userguide/) -- **Setup for DevOps Agent Remote Server**: [Connect to DevOps Agent Remote Servers](https://docs.aws.amazon.com/devopsagent/latest/userguide/accessing-devops-agent-connect-to-devops-agent-remote-servers.html) +- **Documentation**: [AWS Ops Agent User Guide](https://docs.aws.amazon.com/devopsagent/latest/userguide/) +- **Setup for Ops Agent Remote Server**: [Connect to Ops Agent Remote Servers](https://docs.aws.amazon.com/devopsagent/latest/userguide/accessing-devops-agent-connect-to-devops-agent-remote-servers.html) - **Setup for the AWS MCP Server**: [AWS MCP Server Getting Started](https://docs.aws.amazon.com/agent-toolkit/latest/userguide/getting-started-aws-mcp-server.html) - **Support**: [AWS Support Center](https://console.aws.amazon.com/support/) - **License**: Apache-2.0 diff --git a/aws-ops-agent/mcp.json b/aws-ops-agent/mcp.json new file mode 100644 index 00000000..bee8cbd3 --- /dev/null +++ b/aws-ops-agent/mcp.json @@ -0,0 +1,30 @@ +{ + "mcpServers": { + "aws-ops-agent": { + "url": "https://connect.aidevops.${OPS_AGENT_REGION}.api.aws/mcp", + "headers": { + "Authorization": "Bearer ${OPS_AGENT_TOKEN}" + }, + "timeout": 120000 + }, + "aws-ops-agent-sigv4": { + "command": "uvx", + "timeout": 120000, + "args": [ + "mcp-proxy-for-aws@latest", + "https://connect.aidevops.${OPS_AGENT_REGION}.api.aws/mcp", + "--service", "aidevops", + "--region", "${OPS_AGENT_REGION}" + ] + }, + "aws-mcp": { + "command": "uvx", + "timeout": 100000, + "args": [ + "mcp-proxy-for-aws@latest", + "https://aws-mcp.${OPS_AGENT_REGION}.api.aws/mcp", + "--metadata", "AWS_REGION=${OPS_AGENT_REGION}" + ] + } + } +} diff --git a/aws-devops-agent/steering/ecs-incident-walkthrough.md b/aws-ops-agent/steering/ecs-incident-walkthrough.md similarity index 100% rename from aws-devops-agent/steering/ecs-incident-walkthrough.md rename to aws-ops-agent/steering/ecs-incident-walkthrough.md diff --git a/aws-devops-agent/steering/release-readiness.md b/aws-ops-agent/steering/release-readiness.md similarity index 97% rename from aws-devops-agent/steering/release-readiness.md rename to aws-ops-agent/steering/release-readiness.md index a8f05e44..83098114 100644 --- a/aws-devops-agent/steering/release-readiness.md +++ b/aws-ops-agent/steering/release-readiness.md @@ -1,11 +1,11 @@ --- name: release-readiness -description: Guide for running code change risk analyses (formerly release readiness reviews) via the aws-devops-agent remote MCP server (typed tools). Use when the user wants to trigger a code change risk analysis, release readiness review, code review or change review on a PR/MR, check execution status, view execution journal, or cancel a review. +description: Guide for running code change risk analyses (formerly release readiness reviews) via the aws-ops-agent remote MCP server (typed tools). Use when the user wants to trigger a code change risk analysis, release readiness review, code review or change review on a PR/MR, check execution status, view execution journal, or cancel a review. --- ## Overview -This skill uses the typed tools from the `aws-devops-agent` remote MCP server to run code change risk analyses via the Code Change Risk Analysis Agent. It handles the full execution lifecycle — starting reviews, polling for progress, streaming journal output, and retrieving the final code change risk analysis report. +This skill uses the typed tools from the `aws-ops-agent` remote MCP server to run code change risk analyses via the Code Change Risk Analysis Agent. It handles the full execution lifecycle — starting reviews, polling for progress, streaming journal output, and retrieving the final code change risk analysis report. ## Usage diff --git a/aws-devops-agent/steering/release-testing.md b/aws-ops-agent/steering/release-testing.md similarity index 91% rename from aws-devops-agent/steering/release-testing.md rename to aws-ops-agent/steering/release-testing.md index daedf3c6..6e21825d 100644 --- a/aws-devops-agent/steering/release-testing.md +++ b/aws-ops-agent/steering/release-testing.md @@ -1,11 +1,11 @@ --- name: release-testing -description: Guide for running release testing jobs (UI or API) via the aws-devops-agent remote MCP server (typed tools). Use when the user wants to run automated tests, check job status, view test progress, or download test reports. +description: Guide for running release testing jobs (UI or API) via the aws-ops-agent remote MCP server (typed tools). Use when the user wants to run automated tests, check job status, view test progress, or download test reports. --- ## Overview -This skill uses the typed tools from the `aws-devops-agent` remote MCP server to run release testing in the cloud via the Release Testing Agent. It handles the full job lifecycle — creating jobs, polling for progress, streaming journal output, and retrieving the final test report. +This skill uses the typed tools from the `aws-ops-agent` remote MCP server to run release testing in the cloud via the Release Testing Agent. It handles the full job lifecycle — creating jobs, polling for progress, streaming journal output, and retrieving the final test report. **Input is a test profile** — the test profile already contains the target URL, agent type (UI or API), test personas, and credentials. Do NOT ask the user for a URL directly; the URL is defined in the test profile. @@ -23,7 +23,7 @@ Use this skill when: ## Prerequisites -- A pre-existing test profile (Knowledge Item ID like `ki-12345`) created from the AWS DevOps Agent operator app console. +- A pre-existing test profile (Knowledge Item ID like `ki-12345`) created from the AWS Ops Agent operator app console. ## Instructions @@ -34,7 +34,7 @@ Before starting any workflow, you MUST gather the following parameters. Do NOT p #### Step 1 — Test profile (required) Ask the user which test profile to use. The test profile already contains the target URL, agent type (UI or API), test personas, and credentials configuration — these do NOT need to be gathered separately. -**Note:** A pre-existing test profile is a prerequisite for running this agent. Test profiles are created using the AWS DevOps Agent console or API, not through this tool. If the user asks whether they need a test profile or whether one can be created here, inform them that a test profile must already exist before starting a release testing job. +**Note:** A pre-existing test profile is a prerequisite for running this agent. Test profiles are created using the AWS Ops Agent console or API, not through this tool. If the user asks whether they need a test profile or whether one can be created here, inform them that a test profile must already exist before starting a release testing job. #### Step 2 — Test requirement (optional) If the user has not already mentioned a test focus, ask: diff --git a/aws-devops-agent/steering/setup.md b/aws-ops-agent/steering/setup.md similarity index 71% rename from aws-devops-agent/steering/setup.md rename to aws-ops-agent/steering/setup.md index 1509bc52..3e1346fb 100644 --- a/aws-devops-agent/steering/setup.md +++ b/aws-ops-agent/steering/setup.md @@ -1,11 +1,11 @@ --- -description: Setup diagnostics, onboarding, and troubleshooting for the AWS DevOps Agent power +description: Setup diagnostics, onboarding, and troubleshooting for the AWS Ops Agent power alwaysApply: false --- -# AWS DevOps Agent — Setup & Diagnostics +# AWS Ops Agent — Setup & Diagnostics -Use this file when a user needs help setting up, diagnosing connection issues, or troubleshooting the DevOps Agent power. +Use this file when a user needs help setting up, diagnosing connection issues, or troubleshooting the Ops Agent power. --- @@ -14,8 +14,8 @@ Use this file when a user needs help setting up, diagnosing connection issues, o ### 1a. Check environment variables ```bash -echo "DEVOPS_AGENT_TOKEN: $([ -n "$DEVOPS_AGENT_TOKEN" ] && echo 'set' || echo 'not set')" -echo "DEVOPS_AGENT_REGION: ${DEVOPS_AGENT_REGION:-not set}" +echo "OPS_AGENT_TOKEN: $([ -n "$OPS_AGENT_TOKEN" ] && echo 'set' || echo 'not set')" +echo "OPS_AGENT_REGION: ${OPS_AGENT_REGION:-not set}" ``` ### 1b. If token and region are set, verify connectivity @@ -40,7 +40,7 @@ After checking, report which paths are configured and functional. ## Option A — Bearer Token Setup ### 1. Get a token -1. Open the AWS DevOps Agent **Operator Web App** for the desired AgentSpace +1. Open the AWS Ops Agent **Operator Web App** for the desired AgentSpace 2. Navigate to **Settings → Access Keys** 3. Create an access token with scopes: **`agent:read` + `agent:operate`** (recommended) @@ -52,32 +52,32 @@ Ask the user for their token and the region where their AgentSpace is deployed. **macOS / Linux:** ```bash -export DEVOPS_AGENT_TOKEN="your-token-here" -export DEVOPS_AGENT_REGION="us-east-1" +export OPS_AGENT_TOKEN="your-token-here" +export OPS_AGENT_REGION="us-east-1" ``` **Windows (PowerShell):** ```powershell -setx DEVOPS_AGENT_TOKEN "your-token-here" -setx DEVOPS_AGENT_REGION "us-east-1" -$env:DEVOPS_AGENT_TOKEN = "your-token-here" -$env:DEVOPS_AGENT_REGION = "us-east-1" +setx OPS_AGENT_TOKEN "your-token-here" +setx OPS_AGENT_REGION "us-east-1" +$env:OPS_AGENT_TOKEN = "your-token-here" +$env:OPS_AGENT_REGION = "us-east-1" ``` > ⚠️ **Windows users:** After `setx`, restart Kiro for the env var to take effect. -> **Alternative:** Instead of `DEVOPS_AGENT_REGION`, hardcode the region in `.kiro/settings/mcp.json`: +> **Alternative:** Instead of `OPS_AGENT_REGION`, hardcode the region in `.kiro/settings/mcp.json`: > ```json -> { "mcpServers": { "aws-devops-agent": { "url": "https://connect.aidevops.us-east-1.api.aws/mcp" } } } +> { "mcpServers": { "aws-ops-agent": { "url": "https://connect.aidevops.us-east-1.api.aws/mcp" } } } > ``` ### 3. Approve environment variables in Kiro -Go to **Kiro → Settings → MCP Approved Env Vars** and ensure `DEVOPS_AGENT_REGION` and `DEVOPS_AGENT_TOKEN` are present. Without this, Kiro will not pass these variables to MCP servers. +Go to **Kiro → Settings → MCP Approved Env Vars** and ensure `OPS_AGENT_REGION` and `OPS_AGENT_TOKEN` are present. Without this, Kiro will not pass these variables to MCP servers. ### 4. Token lifecycle - Tokens expire (default 90 days). HTTP 401 → create a new token. -- Rotate without downtime: create new token → update `DEVOPS_AGENT_TOKEN` → restart Kiro. +- Rotate without downtime: create new token → update `OPS_AGENT_TOKEN` → restart Kiro. --- @@ -91,10 +91,10 @@ Go to **Kiro → Settings → MCP Approved Env Vars** and ensure `DEVOPS_AGENT_R ### 2. Set the region -Ask the user for the region where their DevOps Agent resource is deployed: +Ask the user for the region where their Ops Agent resource is deployed: ```bash -export DEVOPS_AGENT_REGION="us-east-1" # replace with actual region +export OPS_AGENT_REGION="us-east-1" # replace with actual region ``` ### 3. Ensure valid AWS credentials @@ -103,7 +103,7 @@ export DEVOPS_AGENT_REGION="us-east-1" # replace with actual region aws sts get-caller-identity ``` -The IAM role must have DevOps Agent permissions (e.g., `AIDevOpsAgentFullAccess`). +The IAM role must have Ops Agent permissions (e.g., `AIDevOpsAgentFullAccess`). --- @@ -126,12 +126,12 @@ If `uvx` is found but `mcp-proxy-for-aws` has never been fetched, it auto-downlo ## Troubleshooting -### Option A: Remote server (`aws-devops-agent`) — no tools or errors +### Option A: Remote server (`aws-ops-agent`) — no tools or errors Run in order, stop at first failure: -1. **Is `DEVOPS_AGENT_TOKEN` set?** - - Check: `[ -n "$DEVOPS_AGENT_TOKEN" ] && echo 'Token is set' || echo 'Token is NOT set'` (macOS/Linux) or `if ($env:DEVOPS_AGENT_TOKEN) { 'Token is set' } else { 'Token is NOT set' }` (PowerShell) +1. **Is `OPS_AGENT_TOKEN` set?** + - Check: `[ -n "$OPS_AGENT_TOKEN" ] && echo 'Token is set' || echo 'Token is NOT set'` (macOS/Linux) or `if ($env:OPS_AGENT_TOKEN) { 'Token is set' } else { 'Token is NOT set' }` (PowerShell) - Fix: Set it (see Option A above) and **restart Kiro** 2. **Is the token valid?** @@ -147,7 +147,7 @@ Run in order, stop at first failure: - Bearer token: Your token's scope doesn't cover this operation - This differs from "tools missing" — missing means scope filters them out; AccessDenied means scope covers the tool but server-side authorization failed (rare) -### Option B: SigV4 proxy (`aws-devops-agent-sigv4`) — no tools or errors +### Option B: SigV4 proxy (`aws-ops-agent-sigv4`) — no tools or errors Run in order, stop at first failure: @@ -164,9 +164,9 @@ Run in order, stop at first failure: - `Unable to locate credentials` → `aws configure sso` or `aws configure` - `ExpiredToken` / `InvalidClientTokenId` → `aws sso login` -4. **Does the IAM role have DevOps Agent permissions?** - - Check: `aws devops-agent list-agent-spaces --region $DEVOPS_AGENT_REGION` - - `AccessDeniedException` → User needs a role with DevOps Agent permissions +4. **Does the IAM role have Ops Agent permissions?** + - Check: `aws devops-agent list-agent-spaces --region $OPS_AGENT_REGION` + - `AccessDeniedException` → User needs a role with Ops Agent permissions ### Fallback server (`aws-mcp`) — no tools @@ -176,7 +176,7 @@ Same checks as Option B steps 1-3 (uvx → proxy launch → AWS creds). | Error | Cause | Fix | |-------|-------|-----| -| No tools (remote) | Token not set or Kiro not restarted | Set `DEVOPS_AGENT_TOKEN`, restart Kiro | +| No tools (remote) | Token not set or Kiro not restarted | Set `OPS_AGENT_TOKEN`, restart Kiro | | 401 from remote | Token invalid/expired | Regenerate in Operator Web App | | Tools missing (`investigate`, `chat` absent) | Token scope is `agent:read` only | Create token with `agent:operate` scope | | No tools (SigV4 proxy) | `uvx` not installed or creds missing | `uvx --version`, then `aws sts get-caller-identity` | @@ -193,15 +193,15 @@ Same checks as Option B steps 1-3 (uvx → proxy launch → AWS creds). When MCP tools aren't appearing, diagnose each configured path independently: -### Path A (`aws-devops-agent`) shows no tools: -1. Check `DEVOPS_AGENT_TOKEN` is set and non-empty -2. Check `DEVOPS_AGENT_REGION` is set (otherwise URL is invalid) -3. If neither is set → tell user: "Path A (bearer token) isn't configured. Set DEVOPS_AGENT_TOKEN + DEVOPS_AGENT_REGION, or use Path B (SigV4)." +### Path A (`aws-ops-agent`) shows no tools: +1. Check `OPS_AGENT_TOKEN` is set and non-empty +2. Check `OPS_AGENT_REGION` is set (otherwise URL is invalid) +3. If neither is set → tell user: "Path A (bearer token) isn't configured. Set OPS_AGENT_TOKEN + OPS_AGENT_REGION, or use Path B (SigV4)." -### Path B (`aws-devops-agent-sigv4`) shows no tools but AWS creds exist: +### Path B (`aws-ops-agent-sigv4`) shows no tools but AWS creds exist: 1. Confirm `uvx --version` works 2. Confirm `aws sts get-caller-identity` succeeds -3. Check DevOps Agent access: `aws devops-agent list-agent-spaces --region $DEVOPS_AGENT_REGION` +3. Check Ops Agent access: `aws devops-agent list-agent-spaces --region $OPS_AGENT_REGION` 4. If AccessDenied → user needs `AIDevOpsAgentFullAccess` 5. If creds valid but server still shows no tools → **restart Kiro** (MCP servers initialize at IDE launch) diff --git a/aws-devops-agent/steering/steering.md b/aws-ops-agent/steering/steering.md similarity index 96% rename from aws-devops-agent/steering/steering.md rename to aws-ops-agent/steering/steering.md index 6ef044ed..c37959d4 100644 --- a/aws-devops-agent/steering/steering.md +++ b/aws-ops-agent/steering/steering.md @@ -1,14 +1,14 @@ --- -description: AWS DevOps Agent tool routing, fallback logic, and error handling +description: AWS Ops Agent tool routing, fallback logic, and error handling alwaysApply: true --- -# AWS DevOps Agent — Steering Rules +# AWS Ops Agent — Steering Rules ## Server Priority -1. **Path A**: `aws-devops-agent` (remote server, bearer token) — tools scoped by token -2. **Path B**: `aws-devops-agent-sigv4` (local signing proxy, SigV4) — all tools, multi-space +1. **Path A**: `aws-ops-agent` (remote server, bearer token) — tools scoped by token +2. **Path B**: `aws-ops-agent-sigv4` (local signing proxy, SigV4) — all tools, multi-space 3. **Fallback**: `aws-mcp` (generic AWS API proxy) — used when both primary paths are unavailable Use whichever server the user has configured. If both are active, prefer the one with broader tool access (SigV4 > bearer). Switch to `aws-mcp` only on connection failure, timeout, or HTTP 503. @@ -107,7 +107,7 @@ If `list_recommendations` returns empty after investigation completes, trigger m 2. Trigger mitigation (via aws-mcp fallback): aws___call_aws(cli_command="aws devops-agent update-backlog-task \ --agent-space-id SPACE_ID --task-id TASK_ID \ - --task-status PENDING_START --region $DEVOPS_AGENT_REGION") + --task-status PENDING_START --region $OPS_AGENT_REGION") 3. Poll get_task every 30-45s until COMPLETED again (2-5 min) @@ -246,7 +246,7 @@ Pack into `message` param (for `chat`) or `title`/`description` (for `investigat | Error | Auth Mode | Action | |-------|-----------|--------| | Remote server connection error / 503 | Bearer token | Switch to `aws-mcp` fallback | -| 401 Invalid bearer token | Bearer token | Tell user: "Regenerate token in Operator Web App, update DEVOPS_AGENT_TOKEN, restart Kiro" | +| 401 Invalid bearer token | Bearer token | Tell user: "Regenerate token in Operator Web App, update OPS_AGENT_TOKEN, restart Kiro" | | Tools missing (`investigate`, `chat` not in list) | Bearer token | Tell user: "Your token has `agent:read` scope only. Create a new token with `agent:operate` scope in the Operator Web App" | | `AccessDeniedException` on `investigate`/`chat` | Bearer token | Tell user: "Your token's scope doesn't cover this operation. Create a new token with `agent:read` + `agent:operate` scopes" | | `AccessDeniedException` on any operation | SigV4 (fallback) | Tell user: "Your IAM role lacks permissions. Attach `AIDevOpsAgentFullAccess` managed policy" |