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.

Setup

The generated Google Cloud connect module will look like the following. If you want to connect a project outside of the current provider, you can pass the variable gcp_project_name and gcp_project_number to the module.
terraform {
  required_providers {
    rad-security = {
      source  = "rad-security/rad-security"
      version = "1.1.6"
    }
  }
}

provider "google" {
  # Your Google Cloud provider configuration here
}

provider "rad-security" {
  access_key_id        = "Your Rad Security access key here"
  secret_key           = "Your Rad Security secret key here"
}

module "rad-security-connect" {
  source = "rad-security/rad-security-connect/google"
}