Skip to main content

About the AWS integration

Complianz connects to your AWS account using 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. Once connected, Complianz scans the regions you select and produces findings mapped to common frameworks (SOC 2, ISO 27001, CIS AWS Foundations, PCI DSS, HIPAA).
Complianz assumes your role from a dedicated AWS principal. You control the trust policy, so you can revoke access at any time by deleting the role.

How access works

  • Auth model: AWS STS AssumeRole from a Complianz–managed principal into a role in your account
  • External ID: Required in the trust policy so only a specific Complianz organization can assume the role
  • Permissions: SecurityAudit + ViewOnlyAccess managed policies, plus two small inline policies for Cost Explorer reads and SSM document metadata
  • Optional auto-remediation: A separate role (Complianz-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

Before you begin, make sure you have:
  1. An AWS account with permission to create IAM roles
  2. Your Complianz organization ID (used as the External ID — Complianz’s connection form pre-fills this for you)
  3. Admin access to your Complianz workspace

Connect AWS

The Complianz UI walks you through the full flow and displays the exact CloudShell script to run. The summary below is for reference.
1

Start the connection in Complianz

Go to Cloud Tests → AWS → Connect. Complianz displays a CloudShell script pre-filled with your External ID.
2

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 Complianz-Auditor
  • Attaches SecurityAudit and ViewOnlyAccess managed policies
  • Adds small inline policies for ce:GetCostAndUsage and ssm:GetDocument / ssm:DescribeDocument / ssm:ListDocuments
  • Sets a trust policy that only allows Complianz to assume the role when the correct External ID is supplied
  • Prints the new Role ARN
3

Paste the Role ARN and pick regions

Copy the Role ARN from the script output and paste it into the Complianz connection form. Choose the regions you want scanned. The External ID is already filled in.
4

(Optional) Enable auto-remediation

If you want Complianz to be able to apply fixes, run the second CloudShell script shown in the UI. It creates a separate Complianz-Remediator role with narrower write permissions for the specific services that support auto-fix.
5

Save and run your first scan

Click Save and Connect. Complianz validates the role, then queues an initial scan across all selected regions.

How a fix runs

A fix is always started by a person and carried out by Complianz. Nothing is changed on a schedule — scans are read-only, and your infrastructure is only modified when someone on your team asks for it.
The Fix button only appears once the Complianz-Remediator role is saved on the connection. Until then, Cloud Tests can only report — it cannot change anything.
1

Open a finding and click Fix

In Cloud Tests, findings Complianz can act on show a Fix button. Complianz assumes the remediation role, reads the current state of that resource, and builds a fix plan from what it actually finds rather than from the finding alone.
2

Review what will change

The dialog shows the resource’s current state, the state it will be left in, a risk rating, and the exact AWS API calls the fix will make. Nothing has been changed at this point.
3

Resolve any missing permissions

If the plan needs an action the remediation role doesn’t have, Complianz lists the missing permissions and generates a CloudShell script that adds them. Apply Fix stays disabled until you run it and click Recheck.
4

Confirm

You must tick the acknowledgment box confirming you’ve reviewed the changes. Apply Fix stays disabled until you do.
5

Complianz applies the fix

The plan runs against your account using short-lived STS credentials from the remediation role. If a step fails partway through, the steps already completed are rolled back automatically, so you’re never left in a half-applied state.

After a fix

Every fix is recorded in the Remediations section of the connection, with the commands that ran, the state before the change, who approved it, and when. The same event is written to your organization’s audit log. Successful fixes can be undone from that list with Rollback.

When a fix can’t be automated

Not every finding can be fixed programmatically. Some require a decision only you can make; others turn out not to be automatable once Complianz reads the real state of the resource. In both cases Complianz shows step-by-step manual guidance instead of applying anything.

Fixing a whole service at once

Any service group with failing findings offers Fix All. Choose which findings to include, confirm once, and Complianz works through them in the background. Each fix is recorded individually, and you can skip any finding that is still queued.

Guardrails

  • Nothing runs unattended — scheduled scans are read-only; every fix needs a person
  • Destructive operations are blocked — deleting buckets, terminating instances, and deleting IAM roles can never be part of a fix plan
  • Scoped permissions — the remediation role grants a defined allowlist of actions, not administrator access
  • Permission-gated — applying or rolling back a fix requires permission to update integrations in Complianz

What gets scanned

The AWS integration evaluates findings across a wide set of AWS services, including: The Services tab inside each connection lets you enable or disable specific checks per service.

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

  • Read-only by default — the audit role cannot create, modify, or delete resources
  • External ID enforced — Complianz refuses to connect unless the External ID in your trust policy matches the one stored against your Complianz organization
  • No static credentials — Complianz never stores AWS access keys; short-lived credentials are issued by STS on each scan
  • Revocable at any time — deleting the IAM role in your account immediately cuts off access
  • Write access is opt-in and separate — only the Complianz-Remediator role can change anything, only when you trigger a fix, and deleting that role leaves scanning untouched

Troubleshooting

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 Complianz connection form. If you recently rotated it, re-run the CloudShell script.
Complianz 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.
Check that:
  1. The role has SecurityAudit + ViewOnlyAccess attached (the script attaches both)
  2. The region is enabled on your connection
  3. The service is turned on in the Services tab for this connection
Auto-remediation requires the separate Complianz-Remediator role. Run the second CloudShell script shown in the UI, then paste its Role ARN into the Remediation Role ARN field.
The remediation role covers the actions Complianz needs for the services that support auto-fix. If a particular plan needs something outside that set, the dialog lists the missing actions and generates a CloudShell script that adds them. Run the script, then click Recheck — there’s no need to recreate the role.

Support

  1. Email support@complianz.ai
  2. Join our Discord community