Guest User

Untitled

a guest
Jun 9th, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. #####################################################################
  2. # Variables
  3. #####################################################################
  4. variable "username" {
  5. default = "admin"
  6. }
  7. variable "password" {}
  8. variable "project" {}
  9. variable "region" {}
  10.  
  11. #####################################################################
  12. # Modules
  13. #####################################################################
  14. module "gke" {
  15. source = "./gke"
  16. project = "${var.project}"
  17. region = "${var.region}"
  18. username = "${var.username}"
  19. password = "${var.password}"
  20. }
  21.  
  22. module "k8s" {
  23. source = "./k8s"
  24. host = "${module.gke.host}"
  25. username = "${var.username}"
  26. password = "${var.password}"
  27.  
  28. client_certificate = "${module.gke.client_certificate}"
  29. client_key = "${module.gke.client_key}"
  30. cluster_ca_certificate = "${module.gke.cluster_ca_certificate}"
  31. }
Add Comment
Please, Sign In to add comment