Skip to content

Commit

Permalink
fixes #10 - security_groups in bastion and etcd forcing plan change
Browse files Browse the repository at this point in the history
hashicorp/terraform#6416
Fix: change 'security_groups' to 'vpc_security_group_ids'
  • Loading branch information
wellsie committed May 10, 2016
1 parent 9a36349 commit 9f85bfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/bastion/ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resource "aws_instance" "bastion" {

# TODO: force private_ip to prevent collision with etcd machines

security_groups = [
vpc_security_group_ids = [
"${ var.security-group-id }",
]

Expand Down
2 changes: 1 addition & 1 deletion modules/etcd/ec2.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ resource "aws_instance" "etcd" {
volume_type = "gp2"
}

security_groups = [ "${ var.etcd-security-group-id }" ]
vpc_security_group_ids = [ "${ var.etcd-security-group-id }" ]
source_dest_check = false
subnet_id = "${ element( split(",", var.subnet-ids), 0 ) }"
user_data = "${ element(template_file.cloud-config.*.rendered, count.index) }"
Expand Down

0 comments on commit 9f85bfb

Please sign in to comment.