File tree Expand file tree Collapse file tree 5 files changed +20
-13
lines changed Expand file tree Collapse file tree 5 files changed +20
-13
lines changed Original file line number Diff line number Diff line change @@ -58,13 +58,13 @@ module "ecs" {
58
58
| Name | Version |
59
59
| ------| ---------|
60
60
| <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 0.13.1 |
61
- | <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 2.48 |
61
+ | <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 3.74 |
62
62
63
63
## Providers
64
64
65
65
| Name | Version |
66
66
| ------| ---------|
67
- | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 2.48 |
67
+ | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 3.74 |
68
68
69
69
## Modules
70
70
@@ -75,6 +75,7 @@ No modules.
75
75
| Name | Type |
76
76
| ------| ------|
77
77
| [ aws_ecs_cluster.this] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_cluster ) | resource |
78
+ | [ aws_ecs_cluster_capacity_providers.this] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ecs_cluster_capacity_providers ) | resource |
78
79
79
80
## Inputs
80
81
Original file line number Diff line number Diff line change @@ -44,13 +44,13 @@ Current version creates an high-available VPC with instances that are attached t
44
44
| Name | Version |
45
45
| ------| ---------|
46
46
| <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 0.13.1 |
47
- | <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 2.48 |
47
+ | <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 3.74 |
48
48
49
49
## Providers
50
50
51
51
| Name | Version |
52
52
| ------| ---------|
53
- | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 2.48 |
53
+ | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 3.74 |
54
54
55
55
## Modules
56
56
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ terraform {
4
4
required_providers {
5
5
aws = {
6
6
source = " hashicorp/aws"
7
- version = " >= 2.48 "
7
+ version = " >= 3.74 "
8
8
}
9
9
}
10
10
}
Original file line number Diff line number Diff line change @@ -3,6 +3,19 @@ resource "aws_ecs_cluster" "this" {
3
3
4
4
name = var. name
5
5
6
+ setting {
7
+ name = " containerInsights"
8
+ value = var. container_insights ? " enabled" : " disabled"
9
+ }
10
+
11
+ tags = var. tags
12
+ }
13
+
14
+ resource "aws_ecs_cluster_capacity_providers" "this" {
15
+ count = var. create_ecs ? 1 : 0
16
+
17
+ cluster_name = aws_ecs_cluster. this [0 ]. name
18
+
6
19
capacity_providers = var. capacity_providers
7
20
8
21
dynamic "default_capacity_provider_strategy" {
@@ -15,11 +28,4 @@ resource "aws_ecs_cluster" "this" {
15
28
base = lookup (strategy. value , " base" , null )
16
29
}
17
30
}
18
-
19
- setting {
20
- name = " containerInsights"
21
- value = var. container_insights ? " enabled" : " disabled"
22
- }
23
-
24
- tags = var. tags
25
31
}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ terraform {
4
4
required_providers {
5
5
aws = {
6
6
source = " hashicorp/aws"
7
- version = " >= 2.48 "
7
+ version = " >= 3.74 "
8
8
}
9
9
}
10
10
}
You can’t perform that action at this time.
0 commit comments