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
This commit is contained in:
Paul Hinze 2015-05-08 13:09:51 -05:00
parent da30e12411
commit bc551e8747
1 changed files with 8 additions and 0 deletions

View File

@ -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"
}
}