1
0
Fork 0
mirror of https://github.com/external-secrets/external-secrets.git synced 2024-12-14 11:57:59 +00:00
external-secrets/terraform/gcp/main.tf

30 lines
857 B
Terraform
Raw Normal View History

2021-12-29 12:02:56 +00:00
terraform {
backend "gcs" {
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" {
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
project_id = var.GCP_PROJECT_ID
2021-12-29 12:02:56 +00:00
}
module "test-cluster" {
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
preemptible = true
GCP_GSA_NAME = var.GCP_GSA_NAME
GCP_KSA_NAME = var.GCP_KSA_NAME
2021-12-29 12:02:56 +00:00
}