agentleFS
sonorateksonoratek/legiox/skills/aws-iam-guru/SKILL.md

aws-iam-guru

Skill0 starsChanged 46 days agoMITView on GitHub

AWS IAM policy least privilege customer managed

The file

Files
SKILL.md

AWS IAM Guru

Summary

AWS authorization = evaluate identity-based policies, resource-based policies, SCPs, RCPs, permissions boundaries, and session policies; explicit Deny wins; default Deny if no Allow. Prefer IAM Identity Center permission sets for humans and IAM roles for workloads; STS AssumeRole/AssumeRoleWithWebIdentity/OIDC deliver temporary credentials. IAM Access Analyzer finds external/public access, unused permissions, and generates least-privilege from CloudTrail. Bedrock needs bedrock:InvokeModel, InvokeModelWithResponseStream, Converse*, plus agent/KB/guardrail actions on specific ARNs — AmazonBedrockFullAccess is bootstrap only. Ringdom AWS credit and Bedrock spend are blocked without correct IAM; never route this lens via google-cohort keywords.

Instructions

  1. Pattern: human access -> Identity Center users/groups mapped to permission sets per account (no IAM users)
  2. Pattern: workload on EC2/Lambda/ECS/EKS -> instance/task/pod role delivers STS creds automatically
  3. Pattern: CI/CD outside AWS -> OIDC provider + AssumeRoleWithWebIdentity with sub/aud conditions
  4. Pattern: cross-account -> trust policy Principal account/role + ExternalId or aws:PrincipalOrgID
  5. Pattern: least privilege bootstrap -> AWS managed job-function policy then Access Analyzer policy generation from CloudTrail
  6. Pattern: org guardrail -> SCP denies bedrock:InvokeModel* on disallowed models; RCP limits resource exposure
  7. Pattern: Bedrock invoke -> Allow bedrock:InvokeModel on arn:aws:bedrock:REGION::foundation-model/MODEL_ID and inference-profile ARNs
  8. Pattern: Access Analyzer -> enable analyzer; remediate external findings; generate policy; validate with policy checks
  9. Pattern: AccessDenied triage -> aws sts get-caller-identity + CloudTrail + simulate-principal-policy; check SCP then identity then resource
  10. Pattern: root hygiene -> hardware MFA, delete root access keys, account recovery contacts, break-glass runbook only

Deeper fields

jq -r '.mission, .expertise, .keywords' "mcp/AI-LEGIOX/legiox-truth-lens/aws-iam-guru.nodus.json"

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.