> 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
Version: "2012-10-17"
Statement:
  - Sid: OxBaseReadOnly
    Effect: Allow
    Resource: "*"
    Action:
      - "account:Get*"
      - "apigateway:GET"
      - "appstream:Describe*"
      - "appstream:List*"
      - "autoscaling:Describe*"
      - "backup:Get*"
      - "backup:List*"
      - "bedrock:Get*"
      - "bedrock:List*"
      - "cloudtrail:GetInsightSelectors"
      - "codeartifact:Describe*"
      - "codeartifact:List*"
      - "codebuild:BatchGet*"
      - "codebuild:ListReportGroups"
      - "cognito-idp:GetUserPoolMfaConfig"
      - "comprehend:ListDocumentClassifiers"
      - "comprehend:ListEndpoints"
      - "comprehend:ListEntityRecognizers"
      - "dlm:Get*"
      - "drs:Describe*"
      - "ds:Describe*"
      - "ds:Get*"
      - "ds:List*"
      - "dynamodb:GetResourcePolicy"
      - "ec2:GetEbsEncryptionByDefault"
      - "ec2:GetInstanceMetadataDefaults"
      - "ec2:GetSnapshotBlockPublicAccessState"
      - "ecr:Describe*"
      - "ecr:GetRegistryScanningConfiguration"
      - "elasticfilesystem:DescribeBackupPolicy"
      - "fms:GetAdminAccount"
      - "fms:ListComplianceStatus"
      - "fms:ListPolicies"
      - "forecast:ListDatasetGroups"
      - "frauddetector:GetDetectors"
      - "frauddetector:GetModels"
      - "glue:GetConnections"
      - "glue:GetMLTransforms"
      - "glue:GetSecurityConfiguration"
      - "healthlake:ListFHIRDatastores"
      - "iam:SimulatePrincipalPolicy"
      - "kendra:ListIndices"
      - "lambda:GetFunction*"
      - "lex:DescribeBot"
      - "lex:ListBots"
      - "lightsail:GetInstance"
      - "lightsail:GetInstanceState"
      - "lightsail:GetRelationalDatabases"
      - "macie2:GetAutomatedDiscoveryConfiguration"
      - "macie2:GetMacieSession"
      - "organizations:DescribeEffectivePolicy"
      - "organizations:DescribeOrganization"
      - "organizations:ListAccounts"
      - "organizations:ListDelegatedAdministrators"
      - "organizations:ListPolicies"
      - "personalize:ListDatasetGroups"
      - "qbusiness:ListApplications"
      - "rekognition:DescribeProjectVersions"
      - "rekognition:DescribeProjects"
      - "rekognition:ListStreamProcessors"
      - "s3:GetAccountPublicAccessBlock"
      - "s3:GetObject"
      - "securityhub:BatchImportFindings"
      - "securityhub:GetFindings"
      - "servicecatalog:Describe*"
      - "servicecatalog:List*"
      - "shield:DescribeProtection"
      - "shield:GetSubscriptionState"
      - "ssm-incidents:List*"
      - "states:ListTagsForResource"
      - "support:Describe*"
      - "tag:GetTagKeys"
      - "transcribe:ListTranscriptionJobs"
      - "translate:ListParallelData"
      - "translate:ListTerminologies"
      - "vpc-lattice:ListServices"
      - "wellarchitected:List*"
      - "wisdom:ListAssistants"
      - "wisdom:ListKnowledgeBases"
  - Sid: OxSsmGlobalInfrastructure
    Effect: Allow
    Resource: "arn:aws:ssm:*::parameter/aws/service/global-infrastructure/*"
    Action:
      - "ssm:GetParametersByPath"
  - Sid: OxEKSMonitoring
    Effect: Allow
    Resource: "*"
    Action:
      - "eks:DescribeAddon"
      - "eks:DescribeAddonVersions"
      - "eks:DescribeCluster"
      - "eks:DescribeFargateProfile"
      - "eks:DescribeIdentityProviderConfig"
      - "eks:DescribeNodegroup"
      - "eks:DescribeUpdate"
      - "eks:ListAddons"
      - "eks:ListClusters"
      - "eks:ListFargateProfiles"
      - "eks:ListIdentityProviderConfigs"
      - "eks:ListNodegroups"
      - "eks:ListTagsForResource"
      - "eks:ListUpdates"
  - Sid: OxECRMonitoring
    Effect: Allow
    Resource: "*"
    Action:
      - "ecr:BatchGetImage*"
      - "ecr:GetAuthorizationToken*"
      - "ecr:GetDownloadUrlForLayer*"
```

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

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

<figure><img src="https://884876233-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdK3XMLdV8zRg847RmGmZ%2Fuploads%2Fgit-blob-d184396f8017fc6d056158a696e8363987642bf7%2FAWS_manual.png?alt=media" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
