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" {
5858| Name | Version |
5959| ------| ---------|
6060| <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 |
6262
6363## Providers
6464
6565| Name | Version |
6666| ------| ---------|
67- | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 2.48 |
67+ | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 3.74 |
6868
6969## Modules
7070
@@ -75,6 +75,7 @@ No modules.
7575| Name | Type |
7676| ------| ------|
7777| [ 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 |
7879
7980## Inputs
8081
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
4444| Name | Version |
4545| ------| ---------|
4646| <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 |
4848
4949## Providers
5050
5151| Name | Version |
5252| ------| ---------|
53- | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 2.48 |
53+ | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 3.74 |
5454
5555## Modules
5656
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ terraform {
44 required_providers {
55 aws = {
66 source = " hashicorp/aws"
7- version = " >= 2.48 "
7+ version = " >= 3.74 "
88 }
99 }
1010}
Original file line number Diff line number Diff line change @@ -3,6 +3,19 @@ resource "aws_ecs_cluster" "this" {
33
44 name = var. name
55
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+
619 capacity_providers = var. capacity_providers
720
821 dynamic "default_capacity_provider_strategy" {
@@ -15,11 +28,4 @@ resource "aws_ecs_cluster" "this" {
1528 base = lookup (strategy. value , " base" , null )
1629 }
1730 }
18-
19- setting {
20- name = " containerInsights"
21- value = var. container_insights ? " enabled" : " disabled"
22- }
23-
24- tags = var. tags
2531}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ terraform {
44 required_providers {
55 aws = {
66 source = " hashicorp/aws"
7- version = " >= 2.48 "
7+ version = " >= 3.74 "
88 }
99 }
1010}
You can’t perform that action at this time.
0 commit comments