Skip to content

Commit

Permalink
Added new code
Browse files Browse the repository at this point in the history
  • Loading branch information
nitin-das committed Nov 30, 2019
1 parent bdcaa67 commit 961cec9
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions security-groups.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ resource "aws_security_group" "security_group" {
}
}

dynamic "egress" {
for_each = var.egress_rules
content {
from_port = egress.value["from_port"]
to_port = egress.value["to_port"]
protocol = egress.value["protocol"]
cidr_blocks = [egress.value["cidr_blocks"]]
description = egress.value["description"]
security_groups = [egress.value["security_groups"]]
}
}
// dynamic "egress" {
// for_each = var.egress_rules
// content {
// from_port = egress.value["from_port"]
// to_port = egress.value["to_port"]
// protocol = egress.value["protocol"]
// cidr_blocks = [egress.value["cidr_blocks"]]
// description = egress.value["description"]
// security_groups = [egress.value["security_groups"]]
// }
// }

tags = var.common_tags

Expand Down

0 comments on commit 961cec9

Please sign in to comment.