/aws-secrets-inspector:setupfrom aws-secrets-inspector
Verifies AWS CLI and credentials, then writes the aws-secrets-inspector connector config. Idempotent setup with credential chain resolution and health check.
Ships in aws-secrets-inspector. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Prepares the aws-secrets-inspector connector. Confirms aws CLI is installed and credentials resolve, writes ~/.config/claude-grc/connectors/aws-secrets-inspector.yaml, and creates ~/.config/claude-grc/secrets/ (mode 0700) as the destination for --write-to= retrievals. Runs a read-only health check.
bash "${CLAUDE_PLUGIN_ROOT}/scripts/setup.sh" [--profile=<name>] [--region=<region>]
Exits 0 on success, 2 on missing/invalid credentials, 5 on missing aws binary.
Honors the standard AWS credential chain:
--profile flag (writes it to config)AWS_PROFILE environment variableAWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY env vars~/.aws/credentials default profileThe setup script runs aws sts get-caller-identity to verify credentials resolve before writing the config. If none resolve, it fails with actionable remediation.
Check aws CLI is installed (aws --version).
Resolve credentials (aws sts get-caller-identity).
Resolve default region (from --region, AWS_REGION, config, or fall back with a warning).
Write config:
version: 1
source: aws-secrets-inspector
source_version: "0.1.0"
account_id: "<12-digit>"
caller_arn: "<arn>"
profile: "<if set>"
default_region: "us-east-1"
defaults:
regions: ["us-east-1"]
rotation: true
kms: customer_managed
Create the cache dir ~/.cache/claude-grc/findings/aws-secrets-inspector/ and ensure ~/.cache/claude-grc/runs.log exists.
Create the secrets dir ~/.config/claude-grc/secrets/ at mode 0700 (operator-only).
Warn if the caller ARN has administrative privileges (dogfooding: production scans and retrievals should use a dedicated least-privilege role).
aws-secrets-inspector:setup ✓
aws: /opt/homebrew/bin/aws 2.15.1
account: 123456789012
caller: arn:aws:iam::123456789012:user/you
profile: default
default region: us-east-1
config written: /Users/you/.config/claude-grc/connectors/aws-secrets-inspector.yaml
secrets dir: /Users/you/.config/claude-grc/secrets (mode 700)
WARNING: caller ARN appears to have administrative privileges. For production
scans and retrieval, prefer a dedicated least-privilege role. Minimum IAM
actions for the aws-secrets-inspector:
- Inspector mode: secretsmanager:ListSecrets, secretsmanager:DescribeSecret,
secretsmanager:GetResourcePolicy
- Retrieve mode: + secretsmanager:GetSecretValue, kms:Decrypt
Next:
/aws-secrets-inspector:collect
/aws-secrets-inspector:retrieve --retrieve=<secret-name>
brew install awscli or https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html.aws configure or SSO session.us-east-1 and notes it in the config.This connector does NOT implement sts:AssumeRole itself. For cross-account access, configure the standard AWS CLI profile chain in ~/.aws/config:
[profile audit-target]
role_arn = arn:aws:iam::222233334444:role/SecurityAudit
source_profile = default
mfa_serial = arn:aws:iam::111122223333:mfa/you # optional
Then run /aws-secrets-inspector:setup --profile=audit-target and the connector will pick up the AssumeRole transparently. See skills/retrieve/SKILL.md for the same pattern applied to retrievals.
Yes. Overwrites the config; preserves cached findings and the existing secrets directory (mode 0700 is preserved).
What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/aws-secrets-inspector-expertUse when interpreting AWS Secrets Manager connector output, deciding between inspector and retrieve modes, drafting SCF-mapped controls for rotation / KMS / public-access / inactive-access findings, or troubleshooting an aws-secrets-inspector run.
/collectQuery AWS Secrets Manager for compliance-relevant configuration (rotation, KMS, resource policy, access patterns) and emit findings conforming to the v1 contract./retrieveRetrieve a single AWS Secrets Manager secret value to stdout or a 0600-permission file. Opt-in retrieval mode — never writes to the findings cache./statusReport configuration state, credential validity, and last-run freshness for aws-secrets-inspector.npx claudepluginhub grcengclub/claude-grc-engineering --plugin aws-secrets-inspectorOther plugins' skills for the same job