Interview Prep/DevSecOps/Identity, Least Privilege & OIDC for CI

How do you use IAM Access Analyzer in production?

IntermediateProductionIdentity, Least Privilege & OIDC for CI
Answer

Three uses:

  1. External access analyzer at the org level: flags S3 buckets, KMS keys, roles, queues and secrets shared outside the organization.
  2. Unused access analyzer: finds unused roles, access keys and permissions, which feeds right-sizing.
  3. Policy generation from CloudTrail activity, and policy validation / custom checks in CI:
aws accessanalyzer check-no-new-access \
  --new-policy-document file://new.json --existing-policy-document file://old.json \
  --policy-type IDENTITY_POLICY

We run check-no-new-access on IAM changes in Terraform PRs so a policy cannot quietly widen without an extra review.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Identity, Least Privilege & OIDC for CI