Last active
November 7, 2023 20:21
-
-
Save Jojoooo1/c5a21519cd882bedecd4513c29d8cde2 to your computer and use it in GitHub Desktop.
gke private dev cluster provider
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_version = ">= 1.5.7" | |
backend "gcs" { | |
bucket = "<your-bucket-name>" | |
prefix = "terraform/state/k8s/dev" | |
} | |
required_providers { | |
google = { | |
source = "hashicorp/google" | |
version = ">= 5.4" | |
} | |
google-beta = { | |
source = "hashicorp/google-beta" | |
version = ">= 5.4" | |
} | |
} | |
} | |
data "terraform_remote_state" "network" { | |
backend = "gcs" | |
config = { | |
bucket = "<your-shared-host-bucket-name>" | |
prefix = "terraform/state/network/shared-vpc" | |
} | |
} | |
data "terraform_remote_state" "bastion" { | |
backend = "gcs" | |
config = { | |
bucket = "<your-shared-host-bucket-name>" | |
prefix = "terraform/state/vm/bastion" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment