Docs / Getting started

Getting started

Install AccessLens, sign in with IAM Identity Center, create the read-only role in an account and run your first IAM risk scan, in about five minutes.

Updated

AccessLens is a desktop app that scans your AWS accounts for IAM risk. It runs entirely on your computer: there's no AccessLens account to create, no server in the middle and no telemetry. It signs in with your own IAM Identity Center (SSO) identity, and the only thing it ever creates in AWS is one read-only IAM role, and only if you ask it to.

What you need

  • IAM Identity Center for your organization (or a single account), and a permission set you can sign in with in the account AccessLens should work from. We call that account the hub.
  • In each account you want to scan, a way to create one IAM role: either a permission set there that can call iam:CreateRole and iam:PutRolePolicy, or your usual CloudFormation, Terraform or AWS CLI access.
  • macOS 11 or later, Windows (x64) or Linux (x64). See the download page.

You don't need access keys. AccessLens refuses long-lived IAM user keys, even if they're in your environment.

Install

Download the installer for your system from the download page:

SystemFile
macOS 11+, Apple silicon.dmg (aarch64)
macOS 11+, Intel.dmg (x64)
Windows (x64)-setup.exe (per-user) or .msi
Debian, Ubuntu 22.04+.deb: sudo apt install ./AccessLens_<version>_amd64.deb
Any Linux (x64).AppImage: chmod +x it, then run it

Builds aren't code-signed yet, so macOS and Windows ask you to confirm the first launch. The download page explains how to open an unsigned build and how to check the checksum first.

Your first scan

  1. Sign in with SSO. Choose an IAM Identity Center profile from ~/.aws/config, or enter your access-portal start URL and region. Your browser opens; check that it shows the same code as the app, and approve. If you've already run aws sso login for that session, AccessLens reuses the cached token. See Signing in.
  2. Pick the hub. Choose the account and permission set AccessLens works from. Its short-lived credentials are used to assume the read-only role in each account you add.
  3. Add an account. Go to Accounts → Add account and enter its 12-digit ID, or import accounts from AWS Organizations. The setup wizard opens with a freshly generated ExternalId.
  4. Create the role. Deploy the generated CloudFormation, Terraform or AWS CLI yourself, or choose Create it for me, review the exact policies, type the account ID and confirm. Either way, exactly one role is created: AccessLensReadOnly. See Setting up the role.
  5. Verify. AccessLens assumes the role and makes one read per permission group, retrying briefly while a new role becomes usable.
  6. Scan. Choose Next: first scan, then Scan this account now. Progress streams per collector and analyzer. Then open Dashboard, Findings and Trust graph.

Where to go next