Skip to content

gofireflyio/terraform-google-firefly-gcp-read-only

Repository files navigation

Firefly GCP ReadOnly Integration

Firefly Logo

Module contents

This module enables the APIs that allow us to have visibility into your Google Project and creates a service account for us to scan that project for misconfigurations. The service account requires the "Viewer" role in order to function properly.

Configuration

Prerequisites

This module requires the cURL library to be installed on your machine. To check if you have cURL installed, type the following command in your terminal:

curl --version && gcloud version && terraform init

Installation

provider “google” {
  project = “<GCP_PROJECT_NAME>”
}
module “firefly” {
  source                = “[email protected]:gofireflyio/terraform-google-firefly-gcp-read-only.git”
  firefly_access_key    = “<SECRET>”
  firefly_secret_key    = “<SECRET>”
  name  		= “<INTEGRATION_NAME>”
  project_id	 	= “<GCP_PROJECT_NAME>”
  exclude_projects_discovery_regex = ["<EXCLUSION_REGEX>", "<EXCLUSION_REGEX>"] // optional
}

Upgrading from v1.y.z to v2.y.z

Use of devops-rob/terracurl provider is removed in favour of official hashicorp/http Prior to upgrading it is reuqired to remove the deprecated resources from the state eg:

terraform state list | grep terracurl_request

module.firefly.terracurl_request.firefly_gcp_integration
terraform state rm "module.firefly.terracurl_request.firefly_gcp_integration"

Removed module.firefly.terracurl_request.firefly_gcp_integration
Successfully removed 1 resource instance(s).