diff --git a/README.md b/README.md index 59fef76..35d0fd5 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,7 @@ No resources. | [asg\_wait\_for\_capacity\_timeout](#input\_asg\_wait\_for\_capacity\_timeout) | A maximum duration that Terraform should wait for ASG instances to be healthy before timing out. (See also Waiting for Capacity below.) Setting this to '0' causes Terraform to skip all Capacity Waiting behavior. | `string` | `null` | no | | [assign\_public\_ip](#input\_assign\_public\_ip) | Enable a public IP address for the container | `bool` | `false` | no | | [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 | +| [cluster\_tags](#input\_cluster\_tags) | tags to be added to ECS cluster | `map(any)` | `{}` | no | | [create\_launch\_template](#input\_create\_launch\_template) | Create a launch template | `bool` | `true` | no | | [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 | | [enable\_execute\_command](#input\_enable\_execute\_command) | Specifies whether to enable Amazon ECS Exec for the tasks within the service | `bool` | `false` | no | @@ -68,6 +69,7 @@ No resources. | [service\_scale\_out\_cooldown](#input\_service\_scale\_out\_cooldown) | Time between scale out action | `number` | `300` | no | | [service\_security\_groups](#input\_service\_security\_groups) | Security group IDs to attach to your ECS Service | `list(string)` | `[]` | no | | [service\_subnets](#input\_service\_subnets) | Private subnets for ECS | `list(string)` | `[]` | no | +| [service\_tags](#input\_service\_tags) | tags to be added to task definitions | `map(any)` | `{}` | no | | [service\_target\_cpu\_value](#input\_service\_target\_cpu\_value) | Autoscale when CPU Usage value over the specified value. Must be specified if `enable_cpu_based_autoscaling` is `true`. | `number` | `70` | no | | [service\_task\_execution\_role\_arn](#input\_service\_task\_execution\_role\_arn) | Default IAM role for ECS execution | `string` | `""` | no | | [service\_task\_role\_arn](#input\_service\_task\_role\_arn) | Default IAM role for ECS task | `string` | `""` | no | diff --git a/main.tf b/main.tf index d9215d9..eb696ba 100644 --- a/main.tf +++ b/main.tf @@ -43,6 +43,7 @@ module "cluster" { default_capacity_provider_strategy = var.default_capacity_provider_strategy capacity_providers = var.capacity_providers service_connect_defaults = var.service_connect_defaults + tags = var.cluster_tags } module "service" { diff --git a/modules/autoscaling-policy/README.md b/modules/autoscaling-policy/README.md index 2d2eb9d..7ea5995 100644 --- a/modules/autoscaling-policy/README.md +++ b/modules/autoscaling-policy/README.md @@ -10,7 +10,7 @@ | Name | Version | |------|---------| -| [aws](#provider\_aws) | 5.31.0 | +| [aws](#provider\_aws) | 5.38.0 | ## Modules diff --git a/modules/cluster/README.md b/modules/cluster/README.md index ff9e0d3..09ff0eb 100644 --- a/modules/cluster/README.md +++ b/modules/cluster/README.md @@ -10,7 +10,7 @@ | Name | Version | |------|---------| -| [aws](#provider\_aws) | 5.18.1 | +| [aws](#provider\_aws) | 5.38.0 | ## Modules diff --git a/modules/iam/README.md b/modules/iam/README.md index 11cf16b..e16ce3b 100644 --- a/modules/iam/README.md +++ b/modules/iam/README.md @@ -9,7 +9,7 @@ | Name | Version | |------|---------| -| [aws](#provider\_aws) | 5.31.0 | +| [aws](#provider\_aws) | 5.38.0 | ## Modules diff --git a/modules/service-discovery/README.md b/modules/service-discovery/README.md index 80cb604..f782bc6 100644 --- a/modules/service-discovery/README.md +++ b/modules/service-discovery/README.md @@ -10,7 +10,7 @@ | Name | Version | |------|---------| -| [aws](#provider\_aws) | 5.31.0 | +| [aws](#provider\_aws) | 5.38.0 | ## Modules diff --git a/modules/service/README.md b/modules/service/README.md index b9c0c2a..334d053 100644 --- a/modules/service/README.md +++ b/modules/service/README.md @@ -10,7 +10,7 @@ | Name | Version | |------|---------| -| [aws](#provider\_aws) | 5.18.1 | +| [aws](#provider\_aws) | 5.38.0 | ## Modules diff --git a/variables.tf b/variables.tf index 4908146..0e0a3ff 100644 --- a/variables.tf +++ b/variables.tf @@ -19,6 +19,12 @@ variable "link_ecs_to_asg_capacity_provider" { default = false } +variable "cluster_tags" { + type = map(any) + default = {} + description = "tags to be added to ECS cluster" +} + ############################## # ECS - service ############################## @@ -89,6 +95,12 @@ variable "enable_execute_command" { default = false } +variable "service_tags" { + type = map(any) + default = {} + description = "tags to be added to task definitions" +} + ################################################################################ # Autoscaling group ################################################################################