> For the complete documentation index, see [llms.txt](https://docs.ox.security/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ox.security/ox-integrations/3rd-party-integrations/cloud-security/aws/aws-manual-connection.md).

# AWS Manual Connection

Use this method if your organization prefers to create and manage the IAM role and permissions manually instead of using the OX CloudFormation template.

In this method, you create the IAM role and policy in AWS, then connect the generated AWS Role ARN in OX.

### Step 1: Create the IAM role \[AWS]

1. Sign in to the AWS Management Console.
2. Open the **IAM** service.
3. Create a new role.
4. For **Role type**, select **Another AWS account**.
5. Configure the role using the following values.

| Setting             | Value                                         |
| ------------------- | --------------------------------------------- |
| Account ID          | `351456651185` (OX AWS account ID)            |
| Require external ID | Enabled                                       |
| External ID         | External ID generated in the OX AWS connector |
| Require MFA         | Disabled                                      |

6. Select **Next: Permissions**.

### Step 2: Create the IAM policy \[AWS]

1. Attach the following AWS managed policies:
   * `ViewOnlyAccess`
   * `SecurityAudit`
2. Create the OX integration policy using the JSON policy provided below.
3. Attach the OX integration policy to the role.
4. Select **Next: Tags**.
5. Select **Next: Review**.
6. Configure the role.

| Setting     | Value                                                 |
| ----------- | ----------------------------------------------------- |
| Role name   | `OxAWSIntegrationRole` (recommended) or a custom name |
| Description | Optional                                              |

7. Select **Create role**.

#### OX integration policy

When creating the OX integration policy, include the AWS managed policies listed above and add the following JSON policy.

```json
<existing JSON policy>
```

### Step 3: Connect AWS in OX \[OX]

1. In OX, go to **Settings** > **Connectors**.
2. Select **AWS**.

<figure><img src="/files/W7xucdrdq7a9d4bchf43" alt="" width="513"><figcaption></figcaption></figure>

3. In the **AWS Role ARN** field, paste the copied Role ARN.
4. Select **Connect**.

Verify that the connector status changes to **Connected**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ox.security/ox-integrations/3rd-party-integrations/cloud-security/aws/aws-manual-connection.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
