Integrate with Google Cloud Platform

Overview

Integrating with Google Cloud Platform allows Bridgecrew to perform scans using read-only API calls. This integration is done using a Terraform template.

Prerequisites

Before you start this integration, make sure you have:

  • A valid GCP credentials file
  • Terraform version 0.12 installed
  • The curl command-line tool (installed on the same instance running terraform)

In Bridgecrew

  1. Under Integrations, press GCP Read Only and then Add Project.
  1. Copy the Terraform module code.

In Terraform

  1. Paste the module you copied into your Terraform file. If you are creating a new GCP-terraform deployment file, add a provider block with the name of your credentials file and project as shown below.
provider "google" {
 credentials = file("credentials.json")
 project     = "my_project"
}
 
module "bridgecrew-read" {
  source                     = "bridgecrewio/bridgecrew-gcp-read-only/google"
  org_name               = "my_org"
  bridgecrew_token = "b4667191-6e30-5489-bbb8-030c3f7772eb"
}

📘

Note

Do not change the values of source, org_name and bridgecrew_token.

  1. Run terraform init.
  2. Run terraform apply.

When the terraform run is complete, the integration details will appear in Bridgecrew Cloud under Integrations>GCP Read Only.

Updated 2 months ago


Integrate with Google Cloud Platform


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.