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.
2 parents 7826b97 + a871b1a commit 6035a50Copy full SHA for 6035a50
ecs.tf
@@ -1,12 +1,6 @@
1
resource "aws_ecs_cluster" "ecs" {
2
name = var.name
3
4
- capacity_providers = compact([
5
- try(aws_ecs_capacity_provider.ecs_capacity_provider[0].name, ""),
6
- "FARGATE",
7
- "FARGATE_SPOT"
8
- ])
9
-
10
setting {
11
name = "containerInsights"
12
value = var.container_insights ? "enabled" : "disabled"
@@ -17,5 +11,14 @@ resource "aws_ecs_cluster" "ecs" {
17
tags
18
]
19
13
}
14
+}
20
15
16
+resource "aws_ecs_cluster_capacity_providers" "ecs" {
+ cluster_name = aws_ecs_cluster.ecs.name
+
+ capacity_providers = compact([
+ try(aws_ecs_capacity_provider.ecs_capacity_provider[0].name, ""),
21
+ "FARGATE",
22
+ "FARGATE_SPOT"
23
+ ])
24
0 commit comments