Connect AWS
Give ProofLayer read-only access to an AWS account by creating one role and copying two values between ProofLayer and AWS, including the External ID.
Before you start
ProofLayer collects evidence from AWS by borrowing a role that you create. A role is a set of permissions in your AWS account that a trusted party can use for a short time. ProofLayer never receives an access key or a password for your account.
- ProofLayer only reads. The role uses two AWS-made read-only policies (
SecurityAuditandViewOnlyAccess). It cannot change, create or delete anything. - You need the 12-digit AWS account ID of the account you want to cover.
- You need to be signed in to the AWS console as a person who can create an IAM role. If that is not you, send this page to your IT or cloud colleague.
- In ProofLayer you need to be an operator or an administrator.
What is the External ID?
The External ID is a code that ProofLayer makes up for this one connection. When ProofLayer asks AWS for access, it has to quote the code. AWS only agrees if the code matches the one written into your role. It is a safety check that stops someone else from tricking AWS into handing your account to the wrong party. It is not a password and you do not need to keep it secret from your own team, but do not post it publicly.
Step 1: Add the connection in ProofLayer
Open Connections and click New connection
Choose AWS as the provider and give it a name people will recognise, such as “Production AWS”.
Enter the AWS account ID
Type the 12-digit number. It is shown at the top right of the AWS console when you click your name. This number appears on every piece of evidence.
Open the new connection and find the AWS access card
It lists Trusted principal and External ID, and three tabs: CloudFormation, Terraform and Trust policy only.
If Trusted principal shows account
000000000000, the placeholder has not been replaced. Ask your ProofLayer administrator (see the table at the end).
Step 2: Create the role in AWS
Pick one of the two paths. Path A is easier and recommended.
Path A: with CloudFormation (recommended)
CloudFormation is AWS’s “set this up for me from a template” tool. The template is already filled in with your External ID.
In ProofLayer, copy the template
On the AWS access card, stay on the CloudFormation tab and click the copy icon in the top right of the box. Paste it into a plain text file and save it as
prooflayer-role.yaml.In the AWS console, open CloudFormation
Make sure you are in the AWS account whose ID you entered. The region does not matter for IAM roles; any region works.
Click Create stack → With new resources (standard)
Under Specify template, choose Upload a template file, click Choose file, and select
prooflayer-role.yaml. Click Next.Name the stack
Type
ProofLayerReadOnlyas the Stack name. Click Next twice.Tick the acknowledgement and create
On the last page, tick I acknowledge that AWS CloudFormation might create IAM resources, then click Submit (the button may read Create stack).
The stack status changes to
CREATE_COMPLETEafter about a minute. Press the refresh icon if it does not move.Open the Outputs tab and copy the role ARN
Click the stack, then the Outputs tab. The value next to RoleArn starts with
arn:aws:iam::and ends with:role/ProofLayerCollector. Copy it.
Path B: by hand in IAM
In ProofLayer, copy the trust policy
On the AWS access card click the Trust policy only tab, then the copy icon. It already contains the Trusted principal and your External ID.
Example (yours has your own values) { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::111122223333:role/example-collector" }, "Action": "sts:AssumeRole", "Condition": { "StringEquals": { "sts:ExternalId": "pl-example-0000" } } } ] }In AWS, open IAM → Roles → Create role
Choose Custom trust policy
Under Trusted entity type select Custom trust policy. Delete what is in the box and paste the policy you copied. This is where the External ID goes: the line
sts:ExternalIdmust match the value in ProofLayer exactly.Attach two policies
On Add permissions, search for and tick SecurityAudit and ViewOnlyAccess. Both are AWS-managed and read-only. Click Next.
Name it
ProofLayerCollectorand create itType the Role name, then click Create role. Open the role and copy its ARN from the top of the page.
Step 3: Tell ProofLayer the role ARN
Back in ProofLayer, paste the ARN into Role ARN
It is on the AWS access card, under the three tabs. The ARN looks like
arn:aws:iam::123456789012:role/ProofLayerCollector.Click Save role
A Test access button appears underneath once the role is saved.
Check that it works
Click Test access
ProofLayer asks AWS for a short-lived pass using your role and External ID. Nothing is written to your account.
Success shows Access verified and the identity ProofLayer signed in as. A problem shows Access test failed with AWS’s own reason.
Run your first scan
Open Runs and start a run for this connection, or wait for the scheduled scan. Results appear under Findings.
- External ID
- pl-7f3a9c2e1b4d… (copy)
- Role ARN
- arn:aws:iam::123456789012:role/ProofLayerReadOnly
- Last access test
- Passed 12 Nov 2026, 08:55 UTC
What ProofLayer reads
- People and sign-in: which console users have a second factor (MFA), whether the root account is protected, how old access keys are, and the password policy.
- Exposure: public S3 buckets, public snapshots and databases, and security groups that open SSH or RDP to the whole internet.
- Encryption and keys: default disk encryption, encrypted databases and volumes, and whether your own encryption keys rotate.
- Logging and detection: whether CloudTrail is on in all regions, kept at least 180 days and validated, and whether GuardDuty is switched on.
- Backups and location: whether AWS Backup has a plan, a recent backup and a tested restore, and whether only Indian regions are enabled.
If something goes wrong
| What you see | Likely cause | What to do |
|---|---|---|
| Access denied when ProofLayer assumes the role | The External ID, the Trusted principal or the role ARN does not match | Open the AWS access card, copy the Trusted principal and External ID again, and compare them with the role’s Trust relationships tab in IAM. Fix any difference, then click Test access. |
The Trusted principal shows account 000000000000 | The ProofLayer deployment has not been told which identity it runs as (COLLECTOR_PRINCIPAL_ARN is not set) | Do not create the role yet. Ask your ProofLayer administrator to set it and reload the page. |
| The role exists but Test access fails in the first minute | AWS takes a short time to spread a new role to all its systems | Wait a minute and click Test access again. |
| Access test failed: role not found | The ARN has a typo or belongs to another account | Copy the ARN again from the role page (or the CloudFormation Outputs tab) and click Update role. |
| Some findings show error instead of pass or fail | A policy is missing, so a setting could not be read | Check that both SecurityAudit and ViewOnlyAccess are attached to the role. ProofLayer never counts an unreadable setting as a pass. |