2021-12-29 12:02:56 +00:00
|
|
|
terraform {
|
|
|
|
backend "gcs" {
|
2022-01-24 14:03:15 +00:00
|
|
|
bucket = "eso-infra-state"
|
|
|
|
prefix = "eso-infra-state/state"
|
2021-12-29 12:02:56 +00:00
|
|
|
credentials = "secrets/gcloud-service-account-key.json"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module "test-network" {
|
2022-01-24 14:03:15 +00:00
|
|
|
source = "./eso_gcp_modules/network"
|
|
|
|
env = var.env
|
|
|
|
region = var.region
|
2021-12-29 12:02:56 +00:00
|
|
|
ip_cidr_range = var.ip_cidr_range
|
2022-01-24 14:03:15 +00:00
|
|
|
project_id = var.GCP_PROJECT_ID
|
2021-12-29 12:02:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
module "test-cluster" {
|
2022-01-24 14:03:15 +00:00
|
|
|
source = "./eso_gcp_modules/gke"
|
|
|
|
project_id = var.GCP_PROJECT_ID
|
|
|
|
env = var.env
|
|
|
|
region = var.region
|
|
|
|
network = module.test-network.vpc-object
|
|
|
|
subnetwork = module.test-network.subnet-name
|
|
|
|
node_count = var.node_count
|
2021-12-29 12:02:56 +00:00
|
|
|
initial_node_count = var.initial_node_count
|
2022-01-24 14:03:15 +00:00
|
|
|
preemptible = true
|
|
|
|
GCP_GSA_NAME = var.GCP_GSA_NAME
|
|
|
|
GCP_KSA_NAME = var.GCP_KSA_NAME
|
2021-12-29 12:02:56 +00:00
|
|
|
}
|