Skip to content

Commit

Permalink
Merge pull request #15 from bcgov/chore/capacity-provider-ecs
Browse files Browse the repository at this point in the history
chore: change capacity provider strategy to remove outage
  • Loading branch information
mishraomp authored Dec 16, 2024
2 parents 1caf05e + 939ba03 commit 3c093b7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions infrastructure/api/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,15 @@ resource "aws_ecs_service" "node_api_service" {
desired_count = 1
health_check_grace_period_seconds = 60

capacity_provider_strategy {
capacity_provider_strategy {
capacity_provider = "FARGATE_SPOT"
weight = 100
weight = 80
}
capacity_provider_strategy {
capacity_provider = "FARGATE"
weight = 20
base = 1
}


network_configuration {
security_groups = [data.aws_security_group.app.id]
Expand Down

0 comments on commit 3c093b7

Please sign in to comment.