We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cacd349 + 40c6041 commit ca9bc6bCopy full SHA for ca9bc6b
groups/frontend/instance.tf
@@ -85,6 +85,18 @@ resource "aws_security_group" "services" {
85
}
86
87
88
+ dynamic "ingress" {
89
+ for_each = each.value
90
+ iterator = service
91
+ content {
92
+ description = "Allow client requests from backend servers to ${service.key} service in ${each.key} server group"
93
+ from_port = service.value
94
+ to_port = service.value
95
+ protocol = "TCP"
96
+ cidr_blocks = data.aws_subnet.application.*.cidr_block
97
+ }
98
99
+
100
tags = merge(local.common_tags, {
101
Name = "${each.key}-${local.common_resource_name}"
102
TuxedoServerType = each.key
0 commit comments