You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, having said the above to have a proper ECS cluster up and running multiple resources are needed. In most cases creating these resources is heavily opinionated and or context-bound. That is why this module does not create these resources. But you still need them to have a production ready environment. Therefore the example area shows how to create everything needed for a production environment.
Sometimes you need to have a way to create ECS resources conditionally but Terraform does not allow to use `count` inside `module` block, so the solution is to specify argument `create_ecs`.
181
+
The following values are provided to toggle on/off creation of the associated resources as desired:
| <aname="input_capacity_providers"></a> [capacity\_providers](#input\_capacity\_providers)| List of short names of one or more capacity providers to associate with the cluster. Valid values also include FARGATE and FARGATE\_SPOT. |`list(string)`|`[]`| no |
85
-
| <aname="input_container_insights"></a> [container\_insights](#input\_container\_insights)| Controls if ECS Cluster has container insights enabled |`bool`|`false`| no |
86
-
| <aname="input_create_ecs"></a> [create\_ecs](#input\_create\_ecs)| Controls if ECS should be created |`bool`|`true`| no |
87
-
| <aname="input_default_capacity_provider_strategy"></a> [default\_capacity\_provider\_strategy](#input\_default\_capacity\_provider\_strategy)| The capacity provider strategy to use by default for the cluster. Can be one or more. |`list(map(any))`|`[]`| no |
88
-
| <aname="input_name"></a> [name](#input\_name)| Name to be used on all the resources as identifier, also the name of the ECS cluster |`string`|`null`| no |
89
-
| <aname="input_tags"></a> [tags](#input\_tags)| A map of tags to add to ECS Cluster |`map(string)`|`{}`| no |
229
+
| <aname="input_autoscaling_capacity_providers"></a> [autoscaling\_capacity\_providers](#input\_autoscaling\_capacity\_providers)| Map of autoscaling capacity provider definitons to create for the cluster |`any`|`{}`| no |
230
+
| <aname="input_cluster_configuration"></a> [cluster\_configuration](#input\_cluster\_configuration)| The execute command configuration for the cluster |`any`|`{}`| no |
231
+
| <aname="input_cluster_name"></a> [cluster\_name](#input\_cluster\_name)| Name of the cluster (up to 255 letters, numbers, hyphens, and underscores) |`string`|`""`| no |
232
+
| <aname="input_cluster_settings"></a> [cluster\_settings](#input\_cluster\_settings)| Configuration block(s) with cluster settings. For example, this can be used to enable CloudWatch Container Insights for a cluster |`map(string)`| <pre>{<br> "name": "containerInsights",<br> "value": "enabled"<br>}</pre> | no |
233
+
| <aname="input_create"></a> [create](#input\_create)| Determines whether resources will be created (affects all resources) |`bool`|`true`| no |
234
+
| <aname="input_fargate_capacity_providers"></a> [fargate\_capacity\_providers](#input\_fargate\_capacity\_providers)| Map of Fargate capacity provider definitions to use for the cluster |`any`|`{}`| no |
235
+
| <aname="input_tags"></a> [tags](#input\_tags)| A map of tags to add to all resources |`map(string)`|`{}`| no |
90
236
91
237
## Outputs
92
238
93
239
| Name | Description |
94
240
|------|-------------|
95
-
| <aname="output_ecs_cluster_arn"></a> [ecs\_cluster\_arn](#output\_ecs\_cluster\_arn)| ARN of the ECS Cluster |
96
-
| <aname="output_ecs_cluster_id"></a> [ecs\_cluster\_id](#output\_ecs\_cluster\_id)| ID of the ECS Cluster |
97
-
| <aname="output_ecs_cluster_name"></a> [ecs\_cluster\_name](#output\_ecs\_cluster\_name)| The name of the ECS cluster |
241
+
| <aname="output_autoscaling_capacity_providers"></a> [autoscaling\_capacity\_providers](#output\_autoscaling\_capacity\_providers)| Map of autoscaling capacity providers created and their attributes |
242
+
| <aname="output_cluster_arn"></a> [cluster\_arn](#output\_cluster\_arn)| ARN that identifies the cluster |
243
+
| <aname="output_cluster_capacity_providers"></a> [cluster\_capacity\_providers](#output\_cluster\_capacity\_providers)| Map of cluster capacity providers attributes |
244
+
| <aname="output_cluster_id"></a> [cluster\_id](#output\_cluster\_id)| ID that identifies the cluster |
0 commit comments