Skip to content

Commit

Permalink
refactor: simply subnet references
Browse files Browse the repository at this point in the history
Signed-off-by: Theo Bob Massard <[email protected]>
  • Loading branch information
tbobm committed Nov 13, 2021
1 parent e8a170b commit 439a728
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ resource "aws_ecs_service" "service" {
desired_count = 1

network_configuration {
subnets = [for s in data.aws_subnet.subnets : s.id]
subnets = data.aws_subnet.subnets.*.id
assign_public_ip = true
}

Expand Down
2 changes: 1 addition & 1 deletion lb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ resource "aws_lb" "alb" {
name = local.lb["name"]
internal = local.lb["internal"]
load_balancer_type = "application"
subnets = [for s in data.aws_subnet.subnets : s.id]
subnets = data.aws_subnet.subnets.*.id
}

resource "aws_lb_target_group" "group" {
Expand Down

0 comments on commit 439a728

Please sign in to comment.