AWS in 1 Min · Episode 35

AWS IAM Access Analyzer explained

Who can reach your data?. Watch the one-minute video, then read the details.

David Gomez1:10 video · 3 min read

"You'd notice if your data was shared." Would you? One line in a bucket policy or a role's trust policy can open a resource to another AWS account, or to the whole internet, and nothing in the console flashes red. IAM Access Analyzer exists to answer a simple question with evidence: who can actually reach this?

External access: what's shared outside

You create an analyzer and choose its zone of trust: a single account or your whole organization. Access Analyzer then reads the resource-based policies on supported resources, including S3 buckets, IAM roles, KMS keys, Lambda functions, SQS queues, Secrets Manager secrets and more.

Anything that grants access to a principal outside the zone of trust produces a finding. Each finding shows:

  • the resource
  • the external principal (another account, or public)
  • the level of access granted

You then decide. If the sharing is intended, archive the finding. If not, fix the policy, and the finding resolves. New and changed policies are normally analyzed within about 30 minutes.

Two practical notes. External access analyzers are per Region, so create one in every Region where you have resources. And AWS doesn't list a charge for external access analysis; the paid parts are described below.

Internal and unused access

Access Analyzer has grown beyond "who outside can get in":

  • Internal access analysis shows which users and roles inside your organization can reach the business-critical resources you select, such as specific S3 buckets or DynamoDB tables.
  • Unused access analysis finds roles nobody uses, unused access keys and passwords, and, for active identities, the services and actions they were granted but never use. It's the evidence you need to move toward least privilege.

Both are paid features: unused access is charged by the number of roles and users analyzed each month, internal access by the number of resources monitored. Check the pricing page before turning them on across a large organization.

Help while you write policies

Access Analyzer also works before anything is deployed:

  • Policy validation checks a policy against IAM grammar and AWS best practices and returns errors, security warnings and suggestions.
  • Custom policy checks let a pipeline verify, for instance, that a changed policy doesn't grant new access compared with the old version. These are charged per check.
  • Policy generation reads an identity's activity in AWS CloudTrail over a period you choose and drafts a policy containing only what it actually used.

A common mistake is to enable an analyzer and never look at it. Findings are only useful if someone reviews them; send new ones to your team's channel, and archive intended sharing with rules so the list stays short.

Where AI fits

The intelligence here is not a chatbot or a language model. It's automated reasoning, a branch of AI that uses mathematical logic. AWS describes Access Analyzer as using logic-based reasoning: policies are translated into precise formulas, and a solver works out what they can allow, rather than testing a sample of requests and hoping it found everything.

That is why its findings are evidence and not a guess: a finding means the policy really does permit that access. AWS notes that in rare cases the tool can't fully decide and will report a finding to be safe, so you may occasionally see a false positive, which is the right way round for a security tool.

It also pairs well with generative AI. If you let an assistant draft IAM policies, run the result through policy validation and custom policy checks before it ships.

Quick recap

  • Access Analyzer shows who can reach your data, based on the policies themselves.
  • Set a zone of trust, then review every finding: archive or fix.
  • Use unused access findings to remove permissions nobody needs.
  • Its engine is automated reasoning: logic, not guesswork.
AWS in 1 Min #35 · 1:10

Need an AWS expert on your team?

I'm David, an AWS expert and fractional cloud consultant. I work alongside your team to run your cloud and infrastructure: architecture, security, cost and day-to-day operations. You get senior AWS experience when you need it, without the cost of a full-time hire.

  • Architecture reviews and a clear plan for what to fix first
  • Security hardening: IAM, networking, audits
  • Lower AWS bills without slowing your team down
  • Hands-on help with AI workloads on AWS