Skip to content

Commit 9dc2de3

Browse files
authored
Merge pull request #8 from WhistleLabs/update_asg_module
Update asg module
2 parents 2c321d7 + 7e216a8 commit 9dc2de3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

certs/main.tf

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -205,21 +205,21 @@ module "cluster" {
205205

206206
# VPC parameters
207207
vpc_id = "${var.vpc_id}"
208-
subnets = "${var.subnets}"
209-
region = "${var.region}"
208+
subnets = ["${split(",",var.subnets)}"]
210209

211210
# LC parameters
212-
ami = "${coalesce(var.ami_custom, lookup(var.ami_region_lookup, var.region))}"
213-
instance_type = "${var.instance_type}"
214-
instance_profile = "${aws_iam_instance_profile.profile.id}"
215-
user_data = "${data.template_file.user_data.rendered}"
216-
key_name = "${var.key_name}"
217-
ebs_optimized = false
211+
ami = "${coalesce(var.ami_custom, lookup(var.ami_region_lookup, var.region))}"
212+
enable_monitoring = "true"
213+
instance_type = "${var.instance_type}"
214+
instance_profile = "${aws_iam_instance_profile.profile.id}"
215+
user_data = "${data.template_file.user_data.rendered}"
216+
key_name = "${var.key_name}"
217+
ebs_optimized = "false"
218218

219219
# ASG parameters
220220
max_size = 2
221221
min_size = 1
222222
hc_grace_period = 300
223223
min_elb_capacity = 1
224-
load_balancers = "${aws_elb.elb.id}"
224+
load_balancers = ["${split(",",aws_elb.elb.id)}"]
225225
}

0 commit comments

Comments
 (0)