Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By rcrsrv1.0.1MITIn 1 marketplace
Operate your AWS infrastructure from Claude Code: stack discovery, live resource resolution, and SSO-aware guardrails that block destructive commands.
Claude hands work to one, or you mention it with @.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Portable AWS operations for Claude Code: stack discovery, SSO-aware identity, live role resolution, and a guardrail that blocks dangerous aws commands before they run.
Operate your AWS infrastructure by talking to Claude Code. Ask "what's wrong in prod?", "tail the etl logs", or "trigger the nightly job", and the plugin maps your stack, resolves live resources, and runs the right aws commands, with guardrails that stop the dangerous ones before they execute.
Guardrailed by default. A PreToolUse hook classifies every aws command and blocks destructive ones (delete, terminate, policy writes, scale-to-zero) unless you explicitly opt in. Unrecognized verbs fail safe toward "mutating".
Profile pinning. Every aws command must carry an explicit --profile from your allowed set. No ambient credentials, no accidental prod hits.
Id-free architecture map. Discovery writes a committed, deploy-portable cheat sheet (.claude/aws-stack.md) that carries services, environments, and role handles, never concrete ARNs, resource ids, or account numbers. Those resolve live, on demand.
SSO-aware. Identity and session checks tell you exactly which aws sso login to run when a session expires.
No npm dependencies. Pure ESM, node: builtins only. No npm install, no build step. The one external requirement is the AWS CLI v2 (see Requirements).
The plugin ships a single CLI dispatcher (scripts/awsx.mjs) that skills and agents shell out to. The live AWS account is authoritative for every call; the committed document is only an abstract map.
| Component | Role |
|---|---|
awsx.mjs | CLI dispatcher. Routes subcommands, prints the exact aws command before live calls, maps errors to exit codes. |
lib/awscli.mjs | Only module that spawns the real aws binary. Normalizes failures into typed AwsError codes. |
lib/profiles.mjs | Reads/writes the git-ignored env→{profile, region} map. Source of truth for allowed profiles. |
lib/discover.mjs | Queries CloudFormation + Resource Groups Tagging API, mines the repo for hints, builds the id-free model. |
lib/resolve.mjs | Resolves one role to its live ARN/id via exactly one targeted query. Nothing cached. |
lib/stackdoc.mjs | Renders/parses .claude/aws-stack.md (round-trips). |
lib/guard.mjs | The PreToolUse policy: classify, then allow or block. |
Two persistent artifacts (written into your repo, never the plugin dir):
.claude/aws-stack.md — committed, id-free architecture cheat sheet. Hand-edited descriptions and the architecture narrative survive re-runs..claude/aws-profiles.local.json — git-ignored env→profile map.| Requirement | Notes |
|---|---|
| AWS CLI v2 | Required. The plugin shells out to the aws binary on your PATH; it does not bundle an SDK. Commands fail with exit code 1 (CLI_MISSING) when aws is absent. |
| Node.js 18+ | Required. The CLI is ESM using only node: builtins. |
| AWS SSO profiles | Configured in ~/.aws/config. Map each to a logical environment with awsx profiles set. |
Install the AWS CLI v2 from the official guide, then verify:
aws --version # expect: aws-cli/2.x.x ...
# Load locally
claude --plugin-dir /path/to/aws
# Or install from a marketplace
/plugin marketplace add <owner>/<marketplace-repo>
/plugin install aws@<marketplace>
# 1. Map a logical environment to an AWS profile + region
node scripts/awsx.mjs profiles set prod my-sso-profile us-west-2
# 2. Confirm the SSO session is valid
node scripts/awsx.mjs whoami --env prod
# 3. Discover the stack and write .claude/aws-stack.md
node scripts/awsx.mjs discover --env prod
Then drive it through skills in conversation, e.g. "what's wrong in AWS prod?", "tail the logs for the etl role", "summarize this month's spend".
Run the dispatcher from the consumer repo root (not the plugin directory):
| Command | Description |
|---|---|
awsx whoami --env <e> | Validate SSO and print account / arn / userId. |
awsx discover --env <e> [--check] | Build .claude/aws-stack.md; --check diffs without writing. |
awsx resolve <role> --env <e> [--json] | Resolve a role to its current live ARN/id. |
awsx profiles list | List configured env → profile / region. |
awsx profiles set <env> <profile> <region> | Add or overwrite an env entry. |
awsx guard | PreToolUse hook entrypoint (stdin-driven; runs automatically). |
Exit codes: 0 success, 1 drift/failure, 2 guard block, 3 expired SSO (run aws sso login), 4 usage error.
hooks/hooks.json runs awsx guard on every Bash call. Non-aws commands always pass. Each aws command is classified into a tier:
aws@rcrsr is listed by rcrsr/claude-plugins — review the source before installing
npx claudepluginhub rcrsr/claude-plugins --plugin awsBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground