Skip to main content

Overview

RAD Security has a Terraform Module hosted in the Terraform Registry that will allow you to connect your Google Cloud account. RAD Security uses Google Cloud Workload Federation Identity to be able to assume a Service Account in a Google Cloud Project. Connecting to your Google Cloud Account at the org level is not currently supported.

Connection setup

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

Terraform setup

The generated Google Cloud connect module will look like the following.
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/google/latest
  source  = "rad-security/rad-security-connect/google"
  version = "..."
}
By default, the GCP project from your current provider context will be used. Alternatively, you can specify gcp_project_name and gcp_project_number:
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/google/latest
  source  = "rad-security/rad-security-connect/google"
  version = "..."
 
  gcp_project_name   = "..."
  gcp_project_number = "..."
}
\