Skip to content

Commit

Permalink
Add placement constraints for single instance services
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilkie committed Aug 23, 2023
1 parent 94d3a92 commit 3dc3b14
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions infrastructure/modules/somleng_switch/client_gateway.tf
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ resource "aws_ecs_service" "client_gateway" {
weight = 1
}

placement_constraints {
type = "distinctInstance"
}

depends_on = [
aws_iam_role.client_gateway_task_execution_role
]
Expand Down
4 changes: 4 additions & 0 deletions infrastructure/modules/somleng_switch/media_proxy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ resource "aws_ecs_service" "media_proxy" {
weight = 1
}

placement_constraints {
type = "distinctInstance"
}

depends_on = [
aws_iam_role.media_proxy_task_execution_role
]
Expand Down

0 comments on commit 3dc3b14

Please sign in to comment.