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.
1 parent 71f0150 commit c776134Copy full SHA for c776134
main.tf
@@ -52,7 +52,7 @@ resource "aws_ecs_service" "service" {
52
field = lookup(ordered_placement_strategy.value, "field", null)
53
}
54
55
- health_check_grace_period_seconds = var.health_check_grace_period_seconds
+ health_check_grace_period_seconds = var.health_check_grace_period_seconds
56
dynamic "placement_constraints" {
57
for_each = var.placement_constraints
58
content {
@@ -70,7 +70,7 @@ resource "aws_ecs_service" "service" {
70
71
72
network_configuration {
73
- security_groups =[aws_security_group.ecs_tasks_sg.id]
+ security_groups = concat([aws_security_group.ecs_tasks_sg.id], var.security_groups)
74
subnets = var.private_subnets
75
assign_public_ip = var.assign_public_ip
76
0 commit comments