Skip to content

Instantly share code, notes, and snippets.

View TylerWanner's full-sized avatar

Tyler Wanner TylerWanner

View GitHub Profile
@TylerWanner
TylerWanner / README.md
Last active March 4, 2024 20:54
Terraform Deploy Prefect Server to GCP

Provisioning Prefect Server on GCP using Terraform

Requirements: Terraform, GCP credentials with permission to create a project Tested with: Terraform v0.12.23, google cloud provider v3.26

To run:

You can use an environment variable to set which service account key to use during provisioning export GOOGLE_APPLICATION_CREDENTIALS=/path/to/key The service account you use must belong to a GCP project that has the necessary APIs enabled (such as billing and resource manager)--if it does not, you may have to enable these APIs manually along the way in those projects In this directory, run terraform init then terraform apply -- you will need to provide a billing_id and organization_id for your GCP project

Once successful, be sure to add the following to your ~/.prefect/config.toml

@TylerWanner
TylerWanner / cert-manager|backend.tf
Last active March 20, 2023 21:29
Cert-Manager Helm Release in Terraform
terraform {
backend "local" {
path = "../states/cert_manager.tfstate"
}
}
data "terraform_remote_state" "cluster" {
backend = "local"
config = {
path = "../states/cluster.tfstate"
@TylerWanner
TylerWanner / gke-cluster|backend.tf
Last active September 23, 2021 21:49
Demo GKE Cluster Specs
terraform {
backend "local" {
path = "../states/cluster.tfstate"
}
}
@TylerWanner
TylerWanner / issuers|backend.tf
Last active March 20, 2023 09:09
Cert-Manager CRDs for Linkerd Identity
terraform {
backend "local" {
path = "../states/cm_crds.tfstate"
}
}
data "terraform_remote_state" "cluster" {
backend = "local"
config = {
path = "../states/cluster.tfstate"
@TylerWanner
TylerWanner / Linkerd|backend.tf
Last active September 23, 2021 21:35
Linkerd Control Plane with Helm and Terraform
terraform {
backend "local" {
path = "../states/linkerd.tfstate"
}
}
data "terraform_remote_state" "cluster" {
backend = "local"
config = {
path = "../states/cluster.tfstate"