diff --git a/stun_server/region/ecs.tf b/stun_server/region/ecs.tf index baef529..661b94b 100644 --- a/stun_server/region/ecs.tf +++ b/stun_server/region/ecs.tf @@ -16,8 +16,8 @@ resource "aws_ecs_service" "stun-server" { assign_public_ip = true security_groups = [aws_security_group.stun_sg.id] subnets = [ - data.tfe_outputs.infrastructure.values.public_subnets[0], - data.tfe_outputs.infrastructure.values.public_subnets[1] + data.tfe_outputs.infrastructure.values[data.aws_region.current.name].public_subnets[0], + data.tfe_outputs.infrastructure.values[data.aws_region.current.name].public_subnets[1] ] } }