ecs-app-worker
DNXLabs/ecs-app-worker/aws
This terraform module is an AWS ECS Application Module for Workers without Application Load Balancer (ALB).
Install
README
terraform-aws-ecs-app-worker   Terraform-aws-ecs-app-worker is an AWS ECS Application Module for Workers without Application Load Balancer(ALB). This module is 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. - High memory - High cpu - 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. - ECS task definition - A task definition is required to run Docker containers in Amazo
Inputs (40)
| Name | Type | Description | Default |
|---|---|---|---|
| name | string | Name of your ECS service | required |
| vpc_id | string | VPC ID to deploy this app to | required |
| memory | string | Hard memory of the container | "512" |
| autoscaling_min | number | Min number of containers to scale with autoscaling | 1 |
| autoscaling_scale_in_cooldown | number | Cooldown in seconds to wait between scale in events | 300 |
| task_role_policies_managed | list | AWS Managed policies to be added on the task role. | [] |
| subnets | string | The subnets associated with the task or service. (REQUIRED IF 'LAUCH_TYPE' IS FA | null |
| network_mode | string | The Docker networking mode to use for the containers in the task. The valid valu | null |
| without_capacity_provider | bool | Launch service without capacity provider | false |
| log_subscription_filter_enabled | bool | Enable cloudwatch log subscription filter | false |
| log_subscription_filter_role_arn | string | Role to use for log subscription filter (required when log_subscription_filter_e | "" |
| log_subscription_filter_filter_pattern | string | Filter pattern for log subscription filter | "" |
| security_groups | string | The security groups associated with the task or service | null |
| autoscaling_scale_out_cooldown | number | Cooldown in seconds to wait between scale out events | 300 |
| cloudwatch_logs_retention | number | Specifies the number of days you want to retain log events in the specified log | 120 |
| autoscaling_memory | bool | Enables autoscaling based on average Memory tracking | false |
| cluster_name | string | "Name of existing ECS Cluster to deploy | |
| image | string | Docker image to deploy (can be a placeholder) | "dnxsolutions/nginx-hello:latest" |
| alarm_sns_topics | list | Alarm topics to create and alert on ECS service metrics | [] |
| task_role_policies | list | Custom policies to be added on the task role. | [] |
| autoscaling_target_cpu | number | Target average CPU percentage to track for autoscaling | 50 |
| enable_schedule | bool | Enables schedule to shut down and start up instances outside business hours. | false |
Outputs (2)
aws_cloudwatch_log_group_arnaws_cloudwatch_log_group_nameResources (12)
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,