diff --git a/contrib/terraform/aws/create-infrastructure.tf b/contrib/terraform/aws/create-infrastructure.tf index c332ea9bc004bbfd6314407cb4891a6fddcbc3a9..f07ed55a8e173a4de5a8690d13ba274b4df298c5 100644 --- a/contrib/terraform/aws/create-infrastructure.tf +++ b/contrib/terraform/aws/create-infrastructure.tf @@ -172,8 +172,7 @@ data "template_file" "inventory" { list_node = "${join("\n",aws_instance.k8s-worker.*.tags.Name)}" list_etcd = "${join("\n",aws_instance.k8s-etcd.*.tags.Name)}" elb_api_fqdn = "apiserver_loadbalancer_domain_name=\"${module.aws-elb.aws_elb_api_fqdn}\"" - elb_api_port = "loadbalancer_apiserver.port=${var.aws_elb_api_port}" - loadbalancer_apiserver_address = "loadbalancer_apiserver.address=${var.loadbalancer_apiserver_address}" + elb_api_server = "loadbalancer_apiserver={\"port\": ${var.aws_elb_api_port}, \"address\": \"${var.loadbalancer_apiserver_address}\"}" } } diff --git a/contrib/terraform/aws/templates/inventory.tpl b/contrib/terraform/aws/templates/inventory.tpl index 0e64902b11305cc715d196c4b19903a3ad973a4c..8354f6b7f8e16a2c5e2f72349680f1cb69d9a2ba 100644 --- a/contrib/terraform/aws/templates/inventory.tpl +++ b/contrib/terraform/aws/templates/inventory.tpl @@ -25,5 +25,4 @@ kube-master [k8s-cluster:vars] ${elb_api_fqdn} -${elb_api_port} -${loadbalancer_apiserver_address} +${elb_api_server}