ecs-service
bryan-rhm/ecs-service/aws
Terraform module for ECS Service
Terraform AWS ECS Service Module This terraform module provisions an ECS service. Usage Example on how to provision an AWS ECS Service with FARGATE SPOT containers. ``hcl module "ecs_service" { source = "bryan-rhm/ecs-service/aws" version = "..." # select your prefered version name = "service-name" cluster_arn = module.ecs_cluster.output.arn task_definition_arn = module.ecs_task_definition.output.arn desired_count = 2 propagate_tags = "TASK_DEFINITION" launch_type = "FARGATE" deployment_maximum_percent = 200 deployment_minimum_percent = 100 network_config = { subnets = module.vpc.output.private_subnet_ids security_groups = ["sg-id-1234"] } capacity_provider_strategy = [{ base = 2 name = "FARGATE_SPOT" weight = 1 }] load_balancer = { target_group_arn = module.alb_target_group.output.arn con
| Name | Type | Description | Default |
|---|---|---|---|
| name | string | Name to give to the ECS Service. | required |
| task_definition_arn | string | Family and revision (family:revision) or full ARN of the task definition to be r | null |
| launch_type | string | Launch type on which to run your service. The valid values are EC2, FARGATE, and | "FARGATE" |
| load_balancer | object({ target_group_arn | Details of the load balancer to be associated to the service. | null |
| tags | map(any) | A map of tags to assign to the target group. If configured with a provider defau | null |
| cluster_arn | string | ARN of the ECS cluster on which to run the service. If a cluster is not specifie | null |
| deployment_maximum_percent | number | (Optional) Upper limit (as a percentage of the service's desiredCount) of the nu | 200 |
| deployment_minimum_percent | number | (Optional) Lower limit (as a percentage of the service's desiredCount) of the nu | 100 |
| network_config | object({ subnets | Network configuration for the service. | null |
| health_check_grace_period | number | Seconds to ignore failing load balancer health checks on newly instantiated task | 10 |
| service_registry | object({ arn = | The details of the service discovery registry to associate with this service. | null |
| capacity_provider_strategy | list(object({ base = num | (Optional) Capacity provider strategies to use for the service. Can be one or mo | [] |
| desired_count | number | Number of instances of the task definition to place and keep running. | 0 |
| propagate_tags | string | Specifies whether to propagate the tags from the task definition or the service | "TASK_DEFINITION" |
| enable_execute_command | bool | (Optional) Specifies whether to enable Amazon ECS Exec for the tasks within the | true |
output — ECS service attributesAzure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,