Created
June 2, 2022 17:40
-
-
Save jster1357/3c44cc3ef42e5d4c4e72834ce2f899bb to your computer and use it in GitHub Desktop.
Data Fusion Terraform - no shared vpc w/ pipeline load
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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