ecs-app
DNXLabs/ecs-app/aws
This terraform module for AWS ECS Service with ALB target group (to be used with terraform-aws-ecs)
Install
README
terraform-aws-ecs-app   This terraform module is an AWS ECS Application Module for Scheduler without an Application Load Balancer(ALB), designed to be used with DNXLabs/terraform-aws-ecs (https://github.com/DNXLabs/terraform-aws-ecs). The following resources will be created: - Cloudwatch Metrics alarm - Provides a CloudWatch Metric Alarm resource. - Service has less than minimum healthy tasks} healthy tasks - IAM roles - The cloudwatch event needs an IAM Role to run the ECS task definition. A role is created and a policy will be granted via IAM policy. - IAM policy - Policy to be attached to the IAM Role. This policy will have a trust with
Inputs (50)
| Name | Type | Description | Default |
|---|---|---|---|
| name | string | Name of your ECS service | required |
| vpc_id | string | VPC ID to deploy this app to | required |
| alb_arn | string | ALB ARN created by ECS cluster module | required |
| efs_mapping | map(string) | A map of efs volume ids and paths to mount into the default task definition | {} |
| auth_oidc_authorization_endpoint | string | Authorization endpoint for OIDC (Google: https://accounts.google.com/o/oauth2/v2 | "" |
| dynamic_stickiness | any | Target Group stickiness. Used in dynamic block. | [] |
| internal_alb_listener_arn | string | "" | |
| task_role_arn | string | Existing task role ARN created by ECS cluster module | null |
| service_deployment_minimum_healthy_percent | number | Minimum healthy percentage during deployments | 100 |
| cpu | number | Hard limit for CPU for the container | 0 |
| platform_version | string | The platform version on which to run your service. Only applicable for launch_ty | "LATEST" |
| log_subscription_filter_role_arn | string | "" | |
| ordered_placement_strategy | list(object({ field = stri | Service level strategy rules that are taken into consideration during task place | [] |
| alarm_prefix | string | String prefix for cloudwatch alarms. (Optional) | "alarm" |
| auth_oidc_client_secret | string | Client Secret for OIDC authentication | "" |
| alarm_ecs_running_tasks_threshold | number | Alarm when the number of ecs service running tasks is lower than a certain value | 0 |
| hostname_redirects | string | List of hostnames to redirect to the main one, comma-separated | "" |
| service_health_check_grace_period_seconds | number | Time until your container starts serving requests | 0 |
| alb_name | string | ALB name - Required if it is an internal one | "" |
| command | list(string) | Command to run on container | null |
| placement_constraints | list(object({ type = | Rules that are taken into consideration during task placement. Maximum number of | [] |
| auth_oidc_enabled | bool | Enables OIDC-authenticated listener rule | false |
| enable_schedule | bool | Enables schedule to shut down and start up instances outside business hours. | false |
| … and 10 more inputs | |||
Outputs (1)
aws_cloudwatch_log_group_arnResources (19)
Topics & Tags
Details
Similar packages
Azure 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,