AWS Cloud Tests
About the AWS integration
Section titled “About the AWS integration”Varman connects to your AWS account in one of two ways:
- IAM role (recommended): a cross-account IAM role with an External ID. No long-lived access keys are created, and all access is scoped to read-only unless you also opt in to auto-remediation with a separate role.
- Access keys: the access key of a read-only IAM user, or temporary credentials. See Connect with access keys.
Once connected, Varman scans the regions you select and produces findings mapped to common frameworks (SOC 2, ISO 27001, CIS AWS Foundations, PCI DSS, HIPAA).
How access works
Section titled “How access works”- Auth model: AWS STS
AssumeRolefrom a Varman–managed principal into a role in your account - External ID: Required in the trust policy so only a specific Varman organization can assume the role
- Permissions:
SecurityAudit+ViewOnlyAccessmanaged policies, plus two small inline policies for Cost Explorer reads and SSM document metadata - Optional auto-remediation: A separate role (
Varman-Remediator) can be created to enable auto-fix actions, this role is only used when you explicitly trigger a fix. The audit role stays read-only.
Prerequisites
Section titled “Prerequisites”Before you begin, make sure you have:
- An AWS account with permission to create IAM roles
- Your Varman organization ID (used as the External ID, Varman’s connection form pre-fills this for you)
- Admin access to your Varman workspace
Connect AWS
Section titled “Connect AWS”The Varman UI walks you through the full flow and displays the exact CloudShell script to run. The summary below is for reference.
-
Start the connection in Varman
Go to Cloud Tests → AWS → Connect. Varman displays a CloudShell script pre-filled with your External ID.
-
Run the script in AWS CloudShell
Open AWS CloudShell in the account you want to scan and paste the script. It:
- Creates an IAM role named
Varman-Auditor - Attaches
SecurityAuditandViewOnlyAccessmanaged policies - Adds small inline policies for
ce:GetCostAndUsageandssm:GetDocument/ssm:DescribeDocument/ssm:ListDocuments - Sets a trust policy that only allows Varman to assume the role when the correct External ID is supplied
- Prints the new Role ARN
- Creates an IAM role named
-
Paste the Role ARN and pick regions
Copy the Role ARN from the script output and paste it into the Varman connection form. Choose the regions you want scanned. The External ID is already filled in.
-
(Optional) Enable auto-remediation
If you want Varman to be able to apply fixes, run the second CloudShell script shown in the UI. It creates a separate
Varman-Remediatorrole with narrower write permissions for the specific services that support auto-fix. -
Save and run your first scan
Click Save and Connect. Varman validates the role, then queues an initial scan across all selected regions.
Connect with access keys
Section titled “Connect with access keys”If you can’t create a cross-account role, pick Access keys in the connection form instead of IAM role.
- Create an IAM user with the
SecurityAuditandViewOnlyAccessmanaged policies and create an access key for it. - Paste the Access Key ID and Secret Access Key, choose the regions, and click Connect. Varman checks the keys with AWS before saving and stores them encrypted.
- For temporary credentials (key IDs starting with
ASIA, from STS or SSO), also paste the Session Token. Temporary credentials expire after 1 to 12 hours, so use a read-only IAM user’s keys for daily scans.
Using stored secrets: if the keys are already saved under Settings → Secrets, choose them from Or use a stored secret under each field instead of pasting them. This needs permission to read secrets.
To rotate keys later, open the account’s settings and click Replace keys. Auto-remediation needs the IAM role method.
What gets scanned
Section titled “What gets scanned”The AWS integration evaluates findings across a wide set of AWS services, including:
| Area | Services |
|---|---|
| Identity | IAM, IAM Access Analyzer, Cognito |
| Storage | S3, EBS, EFS, DynamoDB, RDS, Redshift, OpenSearch, ElastiCache |
| Compute | EC2 & VPC, Lambda, ECS & EKS, EMR, Elastic Beanstalk, CodeBuild, Step Functions |
| Network | VPC, ELB/ALB, CloudFront, API Gateway, Route 53, WAF, Network Firewall, Shield |
| Data security | KMS, Secrets Manager, ACM, Macie, Inspector |
| Observability | CloudTrail, CloudWatch, AWS Config, GuardDuty, Security Hub |
| Messaging | SNS, SQS, Kinesis, EventBridge, MSK |
| Other | Backup, ECR, Glue, Athena, SageMaker, Systems Manager, Transfer Family, AppFlow |
The Services tab inside each connection lets you enable or disable specific checks per service.
Compliance frameworks
Section titled “Compliance frameworks”Findings are mapped to the controls used by:
- CIS AWS Foundations Benchmark
- SOC 2
- ISO 27001
- PCI DSS
- HIPAA (where applicable)
Security model
Section titled “Security model”- Read-only by default: the audit role cannot create, modify, or delete resources
- External ID enforced: Varman refuses to connect unless the External ID in your trust policy matches the one stored against your Varman organization
- No static credentials with the IAM role method: short-lived credentials are issued by STS on each scan. With the access keys method, keys are stored encrypted (AES-256-GCM) and only used for read-only API calls
- Revocable at any time: deleting the IAM role in your account immediately cuts off access
Troubleshooting
Section titled “Troubleshooting”Access denied during AssumeRole
The most common cause is an External ID mismatch. Confirm the value in your role’s trust policy matches the External ID shown in the Varman connection form. If you recently rotated it, re-run the CloudShell script.
Role ARN format error
Varman expects an ARN in the form arn:aws:iam::ACCOUNT_ID:role/ROLE_NAME. Make sure you copied the role ARN from the CloudShell output, not the account or user ARN.
Findings missing for a specific service
Check that:
- The role has
SecurityAudit+ViewOnlyAccessattached (the script attaches both) - The region is enabled on your connection
- The service is turned on in the Services tab for this connection
Auto-remediation isn’t available
Auto-remediation requires the separate Varman-Remediator role. Run the second CloudShell script shown in the UI, then paste its Role ARN into the Remediation Role ARN field.
Support
Section titled “Support”Email support@varman.io