ecs-app-nlb
DNXLabs/ecs-app-nlb/aws
This terraform module is an AWS ECS Application Module that creates a Networking LoadBalance Application setup on ECS.
terraform-aws-ecs-app-nlb   This terraform module is an AWS ECS Application Module that creates a Networking LoadBalance Application setup on ECS. 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. - 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 the cloudwatch event servic
| Name | Type | Description | Default |
|---|---|---|---|
| task_role_arn | string | Existing task role ARN created by ECS cluster module | required |
| vpc_id | string | VPC ID to deploy this app to | required |
| service_role_arn | string | Existing service role ARN created by ECS cluster module | required |
| name | string | Name of your ECS service | required |
| autoscaling_target_cpu | number | Target average CPU percentage to track for autoscaling | 50 |
| subnets | string | The subnets associated with the task or service. (REQUIRED IF 'LAUCH_TYPE' IS FA | null |
| nlb | bool | Flag to create the NLB | false |
| assign_public_ip | bool | Configures ECS Service to assign public IP (Fargate Only) | false |
| ulimits | list(object({ name = | Container ulimit settings. This is a list of maps, where each map should contain | null |
| deployment_controller | string | Type of deployment controller. Valid values: CODE_DEPLOY, ECS, EXTERNAL. | "CODE_DEPLOY" |
| image | string | Docker image to deploy (can be a placeholder) | "dnxsolutions/nginx-hello:latest" |
| placement_constraints | list(object({ type = | Rules that are taken into consideration during task placement. Maximum number of | [] |
| network_mode | string | The Docker networking mode to use for the containers in the task. The valid valu | null |
| autoscaling_scale_out_cooldown | number | Cooldown in seconds to wait between scale out events | 300 |
| security_group_ecs_nodes_inbound_cidrs | list(string) | ECS Nodes inbound allowed CIDRs for the security group. | [
"0.0.0.0/0"
] |
| schedule_timezone | string | Timezone for the scheduled actions | "UTC" |
| autoscaling_max | number | Max number of containers to scale with autoscaling | 4 |
| autoscaling_scale_in_cooldown | number | Cooldown in seconds to wait between scale in events | 300 |
| ordered_placement_strategy | list(object({ field = | Service level strategy rules that are taken into consideration during task place | [] |
| cloudwatch_logs_retention | number | Specifies the number of days you want to retain log events in the specified log | 120 |
| codedeploy_role_arn | string | Existing IAM CodeDeploy role ARN created by ECS cluster module | null |
| efs_mapping | map(string) | A map of efs volume ids and paths to mount into the default task definition | {} |
| codedeploy_wait_time_for_termination | number | Time in minutes to terminate the new deployment | 0 |
| enable_schedule | bool | Enable scheduling for ECS service | false |
| … and 10 more inputs | |||
aws_cloudwatch_log_group_arnTerraform module to generate well-formed JSON documents (container definitions)
Terraform module which implements an ECS service which exposes a web service via
Terraform module that implements a web app on ECS and supports autoscaling, CI/C
Terraform module to provision a standard ALB for HTTP/HTTP traffic