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

# AWS

> Connect your AWS account to RAD Security for comprehensive cloud security monitoring.

## Overview

Integrate your AWS infrastructure with Rad Security to leverage enhanced threat detection capabilities and ensure your cloud environments adhere to stringent compliance frameworks.

## Connection setup

1. Sign in to RAD Security
2. Go to `Data Sources`
3. Click on `Add provider`
4. Follow the guide for AWS

## Terraform setup

A Terraform snippet will appear, similar to the example below. Copy it and add it to your existing Terraform code.

```hcl theme={null}
terraform {
  required_providers {
    rad-security = {
      source  = "rad-security/rad-security"
      version = "..."
    }
  }
}

provider "rad-security" {
  access_key_id = "..."
  secret_key    = "..."
}

module "rad-security-connect" {
  # https://registry.terraform.io/modules/rad-security/rad-security-connect/aws/latest
  source  = "rad-security/rad-security-connect/aws"
  version = "..."

  enable_eks_audit_logs_pipeline = true
  aws_external_id                = "..."
}
```

## External ID

An External ID is provided automatically when the Terraform is generated through the UI. It can be accessed through our api directly if you do not want to retrieve it by going through the UI. The External ID that is generated is a unique string generated by the tenant id.

## For multiple AWS accounts

If you're integrating multiple AWS accounts with Rad Security, the module will have to be re-applied to each AWS account.
