Skip to content

Commit c53893d

Browse files
fix: added fix for using capacity provider strategy (#14)
1 parent 768c55a commit c53893d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ecs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ resource "aws_ecs_service" "service" {
99
task_definition = var.task_definition_arn
1010
desired_count = var.desired_task_count
1111
health_check_grace_period_seconds = var.health_check_grace_period_seconds
12-
launch_type = var.launch_type
12+
launch_type = length(var.capacity_provider_strategy) > 0 ? null : var.launch_type
1313

1414
network_configuration {
1515
security_groups = var.security_group_ids

0 commit comments

Comments
 (0)