We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a805d2b commit c906d87Copy full SHA for c906d87
infrastructure/modules/ecs/service.tf
@@ -30,6 +30,20 @@ resource "aws_ecs_service" "ndr_ecs_service" {
30
}
31
32
33
+resource "aws_ecs_cluster_capacity_providers" "fargate" {
34
+ count = ecs_launch_type == "FARGATE" ? 1 : 0
35
+
36
+ cluster_name = aws_ecs_cluster.ndr_ecs_service.name
37
38
+ capacity_providers = ["FARGATE"]
39
40
+ default_capacity_provider_strategy {
41
+ base = 1
42
+ weight = 100
43
+ capacity_provider = "FARGATE"
44
+ }
45
+}
46
47
resource "aws_appautoscaling_target" "ndr_ecs_service_autoscale_target" {
48
max_capacity = var.autoscaling_max_capacity
49
min_capacity = var.autoscaling_min_capacity
0 commit comments