Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #####################################################################
- # Variables
- #####################################################################
- variable "username" {
- default = "admin"
- }
- variable "password" {}
- variable "project" {}
- variable "region" {}
- #####################################################################
- # Modules
- #####################################################################
- module "gke" {
- source = "./gke"
- project = "${var.project}"
- region = "${var.region}"
- username = "${var.username}"
- password = "${var.password}"
- }
- module "k8s" {
- source = "./k8s"
- host = "${module.gke.host}"
- username = "${var.username}"
- password = "${var.password}"
- client_certificate = "${module.gke.client_certificate}"
- client_key = "${module.gke.client_key}"
- cluster_ca_certificate = "${module.gke.cluster_ca_certificate}"
- }
Add Comment
Please, Sign In to add comment