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
Sign in to the IAM console.
In the left pane, click Users, and then click Create user.
Enter a User name, for example
astra-security-audit.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.
Click Next.
On Set permissions, choose Attach policies directly.
Search for
SecurityAuditand select it.Search for
ReadOnlyAccessand select it. To find it faster, filter by AWS managed - job function.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, with the Account ID, the console credentials and the MFA Setup Key (Optional) field.

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
Turn on MFA for the user. Read 📄 How to Enable a Virtual MFA Device for an IAM User. AWS recommends that each user sets up their own MFA device, using a policy such as this AWS example.
Keep sensitive resources out of scope with a deny policy. AWS always applies an explicit deny over an allow. Read 📄 Restricting ReadOnlyAccess for Sensitive AWS Resources.
Limit access to agreed hours if you need to. Read 📄 Enforcing Time-Based Access Restrictions for Astra Scans on AWS.
Store the access keys securely, and delete the user or its keys when you no longer need the review.
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.