Skip to content

Commit

Permalink
Removes data_nodes security group, drops default_security_groups vari…
Browse files Browse the repository at this point in the history
…able due to conditionals not

being supported for list values
(hashicorp/terraform#12453)
  • Loading branch information
charly-vega committed Jul 2, 2018
1 parent 34a5c09 commit 3b267e1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ resource "aws_instance" "data_node" {
key_name = "${var.key_name}"
user_data = "${var.user_data == "" ? file("${path.module}/files/init.sh") : var.user_data }"
ebs_optimized = true
vpc_security_group_ids = ["${var.default_security_groups == true ? concat(list(aws_security_group.influx_cluster.id, aws_security_group.data_node.id), var.security_groups) : var.security_groups}"]
vpc_security_group_ids = ["${concat(list(aws_security_group.influx_cluster.id), var.security_groups)}"]
count = "${var.data_instances}"
}

Expand Down
5 changes: 0 additions & 5 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,6 @@ variable "security_groups" {
default = []
}

variable "default_security_groups" {
description = "Whether default security groups should be applied"
default = true
}

variable "user_data" {
description = "User data script for all instances"
default = ""
Expand Down

0 comments on commit 3b267e1

Please sign in to comment.