Skip to content

Commit 439a728

Browse files
committed
refactor: simply subnet references
Signed-off-by: Theo Bob Massard <[email protected]>
1 parent e8a170b commit 439a728

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ecs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ resource "aws_ecs_service" "service" {
4040
desired_count = 1
4141

4242
network_configuration {
43-
subnets = [for s in data.aws_subnet.subnets : s.id]
43+
subnets = data.aws_subnet.subnets.*.id
4444
assign_public_ip = true
4545
}
4646

lb.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ resource "aws_lb" "alb" {
22
name = local.lb["name"]
33
internal = local.lb["internal"]
44
load_balancer_type = "application"
5-
subnets = [for s in data.aws_subnet.subnets : s.id]
5+
subnets = data.aws_subnet.subnets.*.id
66
}
77

88
resource "aws_lb_target_group" "group" {

0 commit comments

Comments
 (0)