Skip to main content

Amazon Web Services

Byrsa connects to your AWS account(s) by assuming a read-only IAM role you create. Byrsa uses this role to collect inventory and security findings for vulnerabilities, misconfigurations, and compliance.

Cloud Accounts Page​

All your connected AWS accounts are listed at /cloud-accounts. For each account you can see:

  • Account ID and display name
  • Number of resources and security findings discovered
  • Connection status (Connected / Disconnected / Error / Pending)
  • Last sync time and duration
  • Quick actions: rename, connect/disconnect, settings
First time setup

When you log in to a new Byrsa account with no cloud accounts connected, the dashboard shows a Connect account banner at the top. Click it to open the account setup dialog directly.

Adding an AWS Account​

Navigate to Cloud Accounts (/cloud-accounts) and click Add Account. A dialog walks you through three steps.

Step 1 — Generate External ID​

Click Generate External ID. Byrsa generates a unique UUID used as the external ID for the IAM role trust policy. This prevents the confused deputy problem.

Step 2 — Deploy CloudFormation Stack​

Byrsa shows you the generated External ID and asks for an Account Name (a label you choose to identify this account in the UI).

To create the required IAM role in your AWS account you have two options:

Option A — Deploy via console (recommended)

Click Deploy via Console. This opens the AWS CloudFormation console in a new tab with the template pre-loaded and the External ID pre-filled as a parameter. Review the stack, tick the IAM capabilities checkbox, and click Create stack. Once the stack reaches CREATE_COMPLETE, open the Outputs tab and copy the RoleArn value.

Option B — Copy template

Click Copy Template to copy the CloudFormation YAML to your clipboard. Deploy it manually via the AWS CLI or your own IaC pipeline. Pass the External ID as the ExternalId parameter.

The template creates an IAM role named ByrsaSaaSScanRole with exactly two AWS managed policies:

  • SecurityAudit — AWS-managed permissions for security auditing.
  • ViewOnlyAccess — AWS-managed permissions for viewing resource information.

No additional inline policies are attached. The trust policy allows Byrsa's ByrsaScannerRole to assume the role only when the supplied ExternalId matches the value generated for your connection.

Step 3 — Enter Role ARN​

Paste the Role ARN from the CloudFormation stack outputs (format: arn:aws:iam::123456789012:role/ByrsaSaaSScanRole) and click Create Account.

Byrsa immediately tests the connection by assuming the role. If the test passes, the account appears in the Cloud Accounts list with a Connected status. If it fails, check that the Role ARN is correct and that the External ID in the role's trust policy matches the one shown in step 2.

Adding an AWS Organization​

If you manage multiple AWS accounts through AWS Organizations, you can connect the management account and Byrsa will automatically discover and monitor all member accounts.

Follow the same three steps above but deploy the CloudFormation stack in your organization management account. The stack deploys a CloudFormation StackSet that provisions ByrsaSaaSScanRole across all member accounts. New accounts added to the organization are picked up automatically through StackSet automatic deployments.

StackSet trusted access

If the StackSet creation fails, you may need to enable trusted access for CloudFormation in the AWS Organizations console.

Managing Accounts​

From the Cloud Accounts page you can:

  • Rename — hover over an account and click the pencil icon to edit the display name inline. Press Enter or the save button to confirm.
  • Connect / Disconnect — toggle whether Byrsa actively scans the account. You will be asked to confirm before the change takes effect.
  • Settings — opens the account settings panel.

Disconnecting an account stops future syncs but does not delete the account or its historical data from Byrsa. You can reconnect at any time.

Permissions Reference​

The scan role uses only SecurityAudit and ViewOnlyAccess. These policies are maintained by AWS; you can review their current permissions in the IAM console before deploying.

The template does not add separate permissions for log contents, Lambda code downloads, API Gateway, or importing Security Hub findings. Collection depends on the permissions provided by the two managed policies.

CloudFormation Template​

Below is the full CloudFormation template deployed during account setup. You can deploy it directly to your AWS account, download it, or use it as a reference for your own IaC pipeline.

caution

When using Deploy to AWS, you must set the ExternalId parameter to the value shown in the Byrsa account setup dialog. Do not change it — it must match exactly for Byrsa to assume the role.

AWSTemplateFormatVersion: '2010-09-09'

Description: |
This template creates ByrsaSaaSScanRole with only the AWS managed policies
SecurityAudit and ViewOnlyAccess for security scanning. The trust policy allows
Byrsa (https://cloudphare.com) to assume this role for scanning purposes.

Parameters:
ExternalId:
Description: |
DO NOT CHANGE THIS.
This is the External ID that Byrsa will use to assume the role
ByrsaSaaSScanRole from Byrsa's SaaS account.
Type: String


Resources:
ByrsaScanRole:
Type: AWS::IAM::Role
Properties:
RoleName: ByrsaSaaSScanRole
AssumeRolePolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Principal:
AWS: arn:aws:iam::058995517855:role/ByrsaScannerRole
Action: 'sts:AssumeRole'
Condition:
StringEquals:
'sts:ExternalId': !Sub ${ExternalId}
MaxSessionDuration: 3600
ManagedPolicyArns:
- 'arn:aws:iam::aws:policy/SecurityAudit'
- 'arn:aws:iam::aws:policy/job-function/ViewOnlyAccess'
Tags:
- Key: "Service"
Value: "https://cloudphare.com"
- Key: "Support"
Value: "[email protected]"
- Key: "CloudFormation"
Value: "true"
- Key: "Name"
Value: "ByrsaSaaSScanRole"
- Key: "Version"
Value: "1.0.0"
- Key: "ProviderId"
Value: !Ref ExternalId

Outputs:
RoleArn:
Description: "ARN of the ByrsaSaaSScanRole"
Value: !GetAtt ByrsaScanRole.Arn
Export:
Name: ByrsaSaaSScanRoleArn
ExternalId parameter

The ExternalId parameter is pre-filled automatically when you use the Deploy via Console option in the Byrsa UI. If deploying manually, copy the External ID from the account setup dialog before deploying.