> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cybreeze.io/llms.txt
> Use this file to discover all available pages before exploring further.

# AWS

> Inventory EC2 instances and S3 buckets, and check account-wide security controls.

Connecting AWS gives Cybreeze a read-only view of your account. It builds an inventory of what you
run — compute instances, storage buckets, and the account itself — and records the security posture
of each as evidence.

> [!TIP]
>
> **What you get**
>
> A living asset register you did not have to type in, plus continuous answers to the questions an
> auditor asks first: is anything publicly reachable, is data encrypted at rest, is the account
> audited.

## How the connection works

Cybreeze does **not** ask for access keys. You create a role in your own account that trusts
Cybreeze, and Cybreeze assumes it for one hour at a time.

| Property | Detail |
| - | - |
| Auth method | **IAM role assumption (AWS STS)** |
| Credentials stored | None. Temporary credentials are issued per session and expire in one hour. |
| Permissions | **SecurityAudit** |
| Also attached | **ViewOnlyAccess** |
| Access level | \*\*Read-only — nothing is ever created |
| Who can connect | **Someone who can create an IAM role** |

> [!WARNING]
>
> **The External ID is the security boundary**
>
> Your role's trust policy must require an **External ID** that is unique to your organization.
> Cybreeze shows you that value during setup and presents it every time it assumes the role.
>
> Without that condition, your role would trust Cybreeze on behalf of anyone who asked it to — which
> is the confused-deputy problem External IDs exist to prevent. Every setup route below includes the
> condition. Do not remove it.

## What Cybreeze collects

| Asset | What is recorded |
| - | - |
| Cloud account | Account ID and alias, whether the root user has MFA, whether a multi-region CloudTrail trail is logging, and whether GuardDuty is enabled in any region. |
| Compute instances | Every EC2 instance in every enabled region — type, image, state, region, public IP, whether all attached volumes are encrypted, and whether it is genuinely reachable from the internet. |
| Storage buckets | Every S3 bucket — region, encryption at rest, versioning, access logging, and whether it is publicly accessible once Block Public Access is taken into account. |

> [!TIP]
>
> **Reachability is evaluated, not guessed**
>
> An instance is only reported as publicly accessible if it has a public address **and** a security
> group that admits traffic from anywhere. A bucket is only reported as public if a policy or ACL
> grants access **and** no Block Public Access setting neutralises it.
>
> Where a check could not be run, Cybreeze records nothing rather than assuming the worst — a blank
> means "not checked", never "not configured".

## Setup guide

Open **Integrations → AWS → Set up**. Cybreeze shows your organization's External ID and the
principal your role must trust, then offers three ways to build the role. They all produce exactly
the same thing, so pick whichever suits how your team works.

**1. Create the role**

Use one of the routes below. Each one creates a role with the two read-only AWS-managed policies
attached, named as the setup screen says — `Cybreeze-Auditor` for a new account.

**2. Copy the role ARN**

It looks like `arn:aws:iam::123456789012:role/Cybreeze-Auditor`.

**3. Continue and paste it**

Back in Cybreeze, click **I've created the role — continue** and paste the ARN into the
connection dialog. Leave the region blank unless you have a reason to set one — it decides where
credentials are issued, not what gets scanned.

**4. Run discovery**

Go to **Inventory → Discover**, preview what the sync would do, and apply it.

### Route 1 — CloudFormation

The fastest path if you use CloudFormation. Cybreeze gives you a complete template, or a one-click
link that opens the console with everything filled in. Review the template, acknowledge that it
creates IAM resources, and create the stack. The role ARN appears in the stack's **Outputs** tab.

The template takes three parameters — our principal, your External ID and the role name — and the
one-click link prefills all three. They are prefilled, not locked: nothing is created until you
review the values and submit the form yourself.

### Route 2 — Hand it to an agent

Most people setting this up are not the person with AWS access. Cybreeze generates an instruction
block you can paste to a coding agent, or send to whoever administers the account. It states the
role to create, the exact trust condition, the policies to attach — and the things not to do, such
as granting write access or minting access keys.

### Route 3 — By hand, in the console

Always available, and worth reading even if you use one of the others, because it is the only route
that shows you precisely what you are granting.

**1. Start a new role**

In the AWS console go to **IAM → Roles → Create role**, and choose **Custom trust policy**.

**2. Paste the trust policy**

Copy it from the setup screen. It names the Cybreeze principal and requires your External ID.

**3. Attach read-only permissions**

Attach `SecurityAudit` and `ViewOnlyAccess`. Both are AWS-managed and read-only. `SecurityAudit`
covers security configuration; `ViewOnlyAccess` covers listing resources.

**4. Name it and create it**

Give it the name shown on the setup screen, create it, and copy the ARN from the role's summary
page.

> [!TIP]
>
> **Already have a role called Cybreeze-Auditor?**
>
> Keep it. Accounts connected before we renamed the company hold a role named `Cybreeze-Auditor`, and
> that role is not ours to rename — it is in your account, under your control. It keeps working
> exactly as it is, and the setup screen goes on naming it rather than the new one, so you are never
> asked to build a second role. Nothing here ever checks what the role is called.

## Good to know

> [!TIP]
>
> **One connection covers every region**
>
> You do not pick regions. Cybreeze asks AWS which regions your account has enabled and sweeps all of
> them, because a region nobody remembered to enable is exactly where a forgotten asset lives. A
> region that cannot be read is reported as unreadable rather than silently counted as empty.

> [!WARNING]
>
> **Do not delete and recreate the connection casually**
>
> Your External ID stays the same for your organization, so a reconnect does not invalidate the role
> you built. But deleting the role in AWS will break discovery until it is recreated with the same
> trust policy.

## Permissions in detail

`SecurityAudit` and `ViewOnlyAccess` are both AWS-managed policies that grant no write access of any
kind. Cybreeze uses them to call read APIs only — `DescribeInstances`, `DescribeVolumes`,
`DescribeSecurityGroups`, `ListBuckets` and the per-bucket configuration reads, plus
`GetAccountSummary`, `DescribeTrails` and `ListDetectors` for account-level posture.

Cybreeze never creates, modifies or deletes anything in your account, and never reads object
contents from your buckets — only their configuration.

## Useful links

* [How IAM roles work](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html)
* [Why an External ID matters](https://docs.aws.amazon.com/IAM/latest/UserGuide/confused-deputy.html)
* [SecurityAudit managed policy](https://docs.aws.amazon.com/aws-managed-policy/latest/reference/SecurityAudit.html)
* [S3 Block Public Access](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.