# aws iam accessdenied triage

> Triage AWS AccessDenied and IAM failures with a systematic, evidence-based diagnostic workflow.

aws iam accessdenied triage is a free AI agent skill on Agensi by Farman J, in APIs & Backend. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Farman J](https://www.agensi.io/creators/farman024)
- Category: [APIs & Backend](https://www.agensi.io/skills/apis-backend)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-04
- Security: scan passed (2026-10-04); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/aws-iam-accessdenied-triage
- Tags: api, aws-iam, terraform, cloud-security, troubleshooting

## About this skill

AWS IAM failures are notoriously opaque, often hiding the specific policy layer responsible for a block. This skill provides a structured diagnostic workflow to triage `AccessDenied`, `UnauthorizedOperation`, and `AssumeRole` failures without requiring live account access. It helps you move from a vague error string to a prioritized list of likely causes across identity policies, SCPs, resource policies, and boundaries.

### What it does
- **Analyze error strings** to extract the principal, action, resource, and specific denial reason.
- **Identify policy layers** by ranking candidate causes across IAM, SCP, VPC endpoints, and resource-based policies.
- **Diagnose AssumeRole failures** by evaluating trust relationships, OIDC claims, and session conditions.
- **Compare environments** to find why a request succeeds locally but fails in CI/CD or production workloads.
- **Generate least-privilege candidates** for missing permissions based on the specific evidence provided.

### How it works
1. Supply a sanitized AWS error message and optional context like the calling identity or relevant policy snippets.
2. The skill parses the literal denial to determine if it is an explicit `Deny` or an implicit failure to `Allow`.
3. It maps the error to the specific AWS operation type, such as `sts:AssumeRole` or a service-specific action.
4. It delivers a ranked report with evidence-backed hypotheses and safe, read-only verification steps.

### Frameworks & tools
Works with any AWS interface producing authorization errors, including AWS CLI, SDKs, Terraform, CloudFormation, and GitHub Actions.

### Why this beats prompting it yourself
Generic prompts often guess at a single IAM policy, ignoring complex layers like SCPs or Permissions Boundaries. This skill enforces a systematic triage that accounts for the AWS policy evaluation logic and prevents risky suggestions like `AdministratorAccess`.

### Use cases
- Debugging GitHub Actions runners that fail to assume a role via OIDC.
- Identifying which SCP in an AWS Organization is blocking a specific service action.
- Troubleshooting Cross-Account access failures for S3 buckets or KMS keys.

### Known limitations
This tool is offline and read-only. It cannot connect to your AWS account, query APIs, or verify if a policy change actually works. Requires users to redact sensitive identifiers manually.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the aws iam accessdenied triage skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill differ from simply asking a standard LLM to fix an AWS error?

This skill identifies the exact layer responsible for a block—such as Service Control Policies (SCPs), Permissions Boundaries, or resource-based policies—rather than just guessing at IAM user permissions. It applies the formal AWS policy evaluation logic to your error logs to pinpoint the root cause without trial-and-error.

### Which AI agents or platforms are compatible with this IAM triage skill?

The skill is platform-agnostic and designed to work with any AI agent that supports text-based diagnostic workflows. It is optimized for agents used in DevOps and security contexts, such as those integrated with VS Code or terminal-based AI assistants.

### Do I need to grant the skill API access to my AWS environment to use it?

No, this skill operates as a 'human-in-the-loop' diagnostic tool; it analyzes the data you provide (like sanitized logs and policy snippets) and provides a ranked report of causes. It never requires programmatic access to your AWS credentials or live environment, ensuring your security posture remains intact.

### Can this skill help debug OIDC and cross-account 'AssumeRole' failures?

Yes, it specifically handles complex `AssumeRole` failures, including OIDC trust relationship mismatches for GitHub Actions and session-specific conditions. It guides you through verifying the trust policy, external IDs, and identity provider claims that typically cause these silent failures.

### What exactly is included in the purchase, and will I receive updates?

You receive the specialized diagnostic logic, a structured workflow for evidence collection, and a set of templates for generating least-privilege policy fixes. Updates are included to reflect changes in AWS authorization logic, such as new global condition keys or policy evaluation updates.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
