Normalize Terraform configs with terraform fmt

This commit is contained in:
Dalton Hubble 2018-03-11 14:46:05 -07:00
parent 35f3b1b28c
commit 8e7e6b9f7f
3 changed files with 18 additions and 18 deletions

View File

@ -6,17 +6,17 @@ output "ingress_dns_name" {
# Outputs for worker pools # Outputs for worker pools
output "vpc_id" { output "vpc_id" {
value = "${aws_vpc.network.id}" value = "${aws_vpc.network.id}"
description = "ID of the VPC for creating worker instances" description = "ID of the VPC for creating worker instances"
} }
output "subnet_ids" { output "subnet_ids" {
value = ["${aws_subnet.public.*.id}"] value = ["${aws_subnet.public.*.id}"]
description = "List of subnet IDs for creating worker instances" description = "List of subnet IDs for creating worker instances"
} }
output "worker_security_groups" { output "worker_security_groups" {
value = ["${aws_security_group.worker.id}"] value = ["${aws_security_group.worker.id}"]
description = "List of worker security group IDs" description = "List of worker security group IDs"
} }

View File

@ -1,19 +1,19 @@
module "workers" { module "workers" {
source = "workers" source = "workers"
name = "${var.cluster_name}" name = "${var.cluster_name}"
# AWS # AWS
vpc_id = "${aws_vpc.network.id}" vpc_id = "${aws_vpc.network.id}"
subnet_ids = ["${aws_subnet.public.*.id}"] subnet_ids = ["${aws_subnet.public.*.id}"]
security_groups = ["${aws_security_group.worker.id}"] security_groups = ["${aws_security_group.worker.id}"]
count = "${var.worker_count}" count = "${var.worker_count}"
instance_type = "${var.worker_type}" instance_type = "${var.worker_type}"
os_channel = "${var.os_channel}" os_channel = "${var.os_channel}"
disk_size = "${var.disk_size}" disk_size = "${var.disk_size}"
# configuration # configuration
kubeconfig = "${module.bootkube.kubeconfig}" kubeconfig = "${module.bootkube.kubeconfig}"
ssh_authorized_key = "${var.ssh_authorized_key}" ssh_authorized_key = "${var.ssh_authorized_key}"
service_cidr = "${var.service_cidr}" service_cidr = "${var.service_cidr}"
cluster_domain_suffix = "${var.cluster_domain_suffix}" cluster_domain_suffix = "${var.cluster_domain_suffix}"
} }

View File

@ -4,17 +4,17 @@ variable "name" {
} }
variable "vpc_id" { variable "vpc_id" {
type = "string" type = "string"
description = "ID of the VPC for creating instances" description = "ID of the VPC for creating instances"
} }
variable "subnet_ids" { variable "subnet_ids" {
type = "list" type = "list"
description = "List of subnet IDs for creating instances" description = "List of subnet IDs for creating instances"
} }
variable "security_groups" { variable "security_groups" {
type = "list" type = "list"
description = "List of security group IDs" description = "List of security group IDs"
} }
@ -47,7 +47,7 @@ variable "disk_size" {
# configuration # configuration
variable "kubeconfig" { variable "kubeconfig" {
type = "string" type = "string"
description = "Generated Kubelet kubeconfig" description = "Generated Kubelet kubeconfig"
} }