From 5c22128fc74b81c70671f87c82b2556f884a5d44 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 f5e6fc91c..afb592637 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" + } }