From bc551e8747c26998941df23c1a8fcc2a3870982d Mon Sep 17 00:00:00 2001 From: Paul Hinze Date: Fri, 8 May 2015 13:09:51 -0500 Subject: [PATCH] Add egress rule to SG for TF 0.5 compat See "NOTE on Egress rules" here http://www.terraform.io/docs/providers/aws/r/security_group.html As reported here: https://github.com/hashicorp/terraform/issues/1873 --- terraform/aws/consul.tf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/terraform/aws/consul.tf b/terraform/aws/consul.tf index f5e6fc91c6..afb5926370 100644 --- a/terraform/aws/consul.tf +++ b/terraform/aws/consul.tf @@ -62,4 +62,12 @@ resource "aws_security_group" "consul" { protocol = "tcp" cidr_blocks = ["0.0.0.0/0"] } + + // This is for outbound internet access + egress { + from_port = 0 + to_port = 0 + protocol = "-1" + cidr_block = "0.0.0.0/0" + } }