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.
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
provider “google” {
project = “<GCP_PROJECT_NAME>”
}
module “firefly” {
source = “git@github.com: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
}
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).