Skip to content

Commit

Permalink
add capacity provider to service_no_loadbalancer
Browse files Browse the repository at this point in the history
  • Loading branch information
keirbadger committed Apr 4, 2024
1 parent e64b30b commit 28d04e9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,14 @@ resource "aws_ecs_service" "service_no_loadbalancer" {
expression = lower(var.pack_and_distinct) == "true" ? "" : "agentConnected == true"
}

dynamic capacity_provider_strategy {
for_each = var.capacity_providers
content {
base = 0
capacity_provider = capacity_provider_strategy.value["capacity_provider"]
weight = capacity_provider_strategy.value["weight"]
}
}
lifecycle {
ignore_changes = [
capacity_provider_strategy,
Expand Down

0 comments on commit 28d04e9

Please sign in to comment.