Skip to content

Instantly share code, notes, and snippets.

@jster1357
Created June 2, 2022 17:40
Show Gist options
  • Save jster1357/3c44cc3ef42e5d4c4e72834ce2f899bb to your computer and use it in GitHub Desktop.
Save jster1357/3c44cc3ef42e5d4c4e72834ce2f899bb to your computer and use it in GitHub Desktop.
Data Fusion Terraform - no shared vpc w/ pipeline load
terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "4.22.0"
}
cdap = {
source = "GoogleCloudPlatform/cdap"
# Pin to a specific version as 0.x releases are not guaranteed to be backwards compatible.
version = "0.9.0"
}
}
}
provider "google" {
credentials = file("~/terraform/sa.json")
project = "generalproject-340815"
}
data "google_client_config" "current" {}
provider "cdap" {
host = "https://${var.instance_name}-${var.project_id}-dot-${var.cdf_region_map[var.region]}.datafusion.googleusercontent.com/api"
token = data.google_client_config.current.access_token
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment