How-To: Creating a Security Auditor Role in AWS

Last updated: November 24, 2026

For a review of your AWS account, Astra needs an IAM user with read-only access. This article explains how to create that user with the SecurityAudit and ReadOnlyAccess managed policies, and what to enter in Astra afterwards. Both policies only allow Astra to read configuration and security settings. They don't allow any changes to your resources.

Before you start

  • Access to the AWS Management Console.

  • Permission to create IAM users and attach policies.

Create the IAM user

  1. Sign in to the IAM console.

  2. In the left pane, click Users, and then click Create user.

  3. Enter a User name, for example astra-security-audit.

  4. If Astra needs to sign in to the console, select Provide user access to the AWS Management Console and choose I want to create an IAM user. Automated Config Scans only need programmatic access, so you can skip this for them.

  5. Click Next.

  6. On Set permissions, choose Attach policies directly.

  7. Search for SecurityAudit and select it.

  8. Search for ReadOnlyAccess and select it. To find it faster, filter by AWS managed - job function.

  9. Click Next, check that both policies are listed, and click Create user.

Create access keys

Config Scans use programmatic access. Open the new user, go to the Security credentials tab, and create an access key. Download the CSV file, because AWS shows the secret access key only once. For step-by-step instructions, read 📄 How-To: Creating Programmatic Keys in Amazon Web Services (AWS).

Enter the details in Astra

On the cloud target's setup, or later under the target's Settings:

  • User Credentials: the step is headed Enter the credentials for an IAM user with security analyst role. Enter the Account ID, and the user's Email/Username and Password if you gave console access. If the user has MFA, add the key in MFA Setup Key (Optional).

  • Programmatic Access: the step is headed Enter the credentials for programmatic access(CLI). Upload the access key CSV file as the Credential File, or enter the Access Key ID and Secret Access Key, and choose the Region(s) to scan. Click Test Connection to check whether Astra could connect.

The User Credentials step of an AWS cloud target

The User Credentials step of an AWS cloud target, with the Account ID, the console credentials and the MFA Setup Key (Optional) field.

The Programmatic Access step of an AWS cloud target

The Programmatic Access step of an AWS cloud target. Upload the access key CSV file or enter the keys, and choose the regions to scan.

For the full setup, read 📄 Cloud Target Setup.

Recommendations

For more on IAM user types, see AWS's user types guide.

If you need help creating the IAM user, contact support from your Astra dashboard or reach out to your CSM.