> For the complete documentation index, see [llms.txt](https://docs.nullify.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nullify.ai/connectors/aws/configuration.md).

# Configuration

## Requirements

* An active Nullify tenant.
* AWS permissions to create IAM roles and (optionally) deploy CloudFormation StackSets.
* Access to Terraform or CloudFormation tooling.

## Setup Overview

Nullify uses cross-account IAM roles to ingest metadata from your AWS accounts. The dashboard supplies the parameters you need to deploy our CloudFormation or Terraform template.

## Information You Provide

* **IAM role name** that Nullify assumes in your accounts. The CloudFormation template and Terraform module name it `AWSIntegration-<CustomerName>-NullifyReadOnlyRole`; change it only if you use a custom role.
* **Target account IDs** that Nullify should monitor.

## Parameters Supplied by Nullify

The AWS panel shows these values under **Deployment & Verification**. The template parameter names are in brackets (CloudFormation / Terraform).

* **Nullify role ARN** for the external principal (`CrossAccountRoleArn` / `nullify_role_arn`).
* **External ID** to enforce a trusted relationship (`ExternalID` / `external_id`). The panel generates one if none is saved; it is an editable field in the **IAM role** section.
* **Nullify S3 bucket** for encrypted data transfer (`NullifyS3Bucket` / `s3_bucket_name`).
* **KMS key ARN** and **S3 access point ARN**, when the panel shows them (`NullifyKMSKeyArn` / `kms_key_arn` and `NullifyS3AccessPointArn` / `nullify_s3_access_point_arn`).
* **Collector role ARN**, when shown, for the [Kubernetes collector](https://docs.nullify.ai/connectors/kubernetes.md).

All example identifiers below are placeholders—replace them with the values displayed in your tenant.

## Setup Steps

1. **Open the Nullify console**: **Settings → Connectors → AWS**.
2. **Enter your role name** and list of account IDs, then select **Save changes**.
3. Open the matching [cloud-connector template](https://github.com/Nullify-Platform/nullify-cloud-connector) and fill its variables with the parameters from your workspace. The current AWS settings form stores a deployment-method preference; it does not download a rendered template. If Nullify has prepared an AWS setup pull request, review and deploy that change instead (see [Setup proposals](#setup-proposals)). Once it is deployed, the panel offers **Use these values** to fill in the detected role and accounts.
4. **Deploy the template**:
   * *Single account*: Launch via AWS Console, CLI, or your preferred IaC workflow.
   * *Multiple accounts*: Use CloudFormation StackSets or Terraform loops. Ensure the role name is consistent across accounts.
5. **Verify the connector**: return to the AWS panel and select **Verify connection**. Each account shows **Valid**, **Invalid** or **Not validated**; hover over an invalid result to see the error.

## Setup proposals

Where enabled, Nullify can prepare the connector change as a pull request. It reads only the repositories you selected during [Onboarding](https://docs.nullify.ai/getting-started/getting-started.md), finds the Terraform that deploys your infrastructure, and drafts the changes that add the Nullify connector role. Preparation needs GitHub.com with the GitHub App installed, and saved AWS settings. A custom IAM role name stops preparation, because the connector module does not create that role: clear the role name to receive a proposal, or set up manually.

1. **Open the proposal**: under **Settings → Connectors → Setup proposals**, on the AWS panel under **Deployment & Verification**, or in the Cloud step of onboarding. **Overview** shows **Review setup proposals** when a proposal is ready.
2. **Review it**: select **Review changes** to see the pull request title and description and the diff of each file.
3. **Create the pull request**: select **Create draft pull request**. Nullify opens a draft pull request in your repository, and **Open AWS setup pull request** links to it.
4. **Merge and deploy it**: merging alone may not deploy the change. Nullify checks for the role automatically. Once it can assume the role, the AWS panel offers **Use these values**; save the detected role and accounts, then select **Verify connection**.

A proposal expires 24 hours after it is prepared and can no longer be approved. Select **Refresh expired proposal** on the AWS panel or in onboarding to prepare a new one, then review it again. If preparation stops, **Retry preparation** starts it again. The proposal's status names any remedy, such as **Select infrastructure repositories** or **Manage GitHub App access**.

Viewing proposals needs the `config:read` permission. Creating the draft pull request and refreshing a proposal need `config:write`. **Setup proposals** also lists the [WAF and IP allowlist proposal](https://docs.nullify.ai/capabilities/pentests/preparing-for-an-engagement.md#5-outgoing-ip-addresses).

## Deployment Modes

### Single Account

Deploy the template directly into the account hosting your workloads. Grant the cross-account role permission to discover resources in the regions you care about.

### Multi-Account / AWS Organizations

Use StackSets or Terraform to roll out the connector across member accounts. Deploy the role to both the management and member accounts so Nullify can analyse shared services and spokes.

> The current release expects the same IAM role name in every account. Contact support if you require per-account variation.

## Validation Checklist

* Account IDs are valid 12-digit numbers.
* The IAM role exists and trusts the Nullify role ARN with the provided external ID.
* The permissions policy matches the template (least privilege for discovery only).

## Troubleshooting

* **Role not found** — Confirm the StackSet or Terraform run succeeded in each account.
* **Access denied** — Verify the trust policy includes the Nullify role ARN and external ID.
* **Stale data** — Check each account's last verification under **Deployment & Verification**, and confirm the role still has the template's permissions.

## Kubernetes (optional add-on)

To relate Kubernetes workloads back to your AWS accounts, deploy the [Nullify Kubernetes Collector](https://github.com/Nullify-Platform/nullify-cloud-connector) into your clusters. See the [Kubernetes connector guide](https://docs.nullify.ai/connectors/kubernetes.md) for setup; the Helm chart includes installation instructions, configuration samples, and troubleshooting guidance.

## Multiple accounts and validation

Record each account's ID, display name, and whether it is the default account (**Set default**). Verify each account independently: one successful role assumption does not validate every account in an organization.

## Installation options

Use the [AWS setup scripts](https://github.com/Nullify-Platform/nullify-cloud-connector/tree/main/aws-integration-setup/scripts) for interactive installation (`setup-aws-integration.sh`) and deployment verification (`validate-deployment.sh`). Review their help and the generated permissions before running. `cleanup.sh` removes deployed integration resources; it is an uninstall operation, not a troubleshooting step.

The Terraform `k8s-resources` module can install the collector through the Kubernetes provider. Alternatively use the [Helm collector](https://github.com/Nullify-Platform/nullify-cloud-connector/tree/main/helm-charts/nullify-k8s-collector). Choose one owner for the collector resources rather than installing both over the same names. The AWS provider-v6 examples also support multi-region EKS clusters; consult that variant's prerequisites before using ephemeral EKS credentials.
