ecs-app

DNXLabs/ecs-app/aws

Terraform Module HCL AWS

This terraform module for AWS ECS Service with ALB target group (to be used with terraform-aws-ecs)

Install
module "ecs-app" {
source = "DNXLabs/ecs-app/aws"
version = "7.5.0"
}
⭐ Source on GitHub 📦 Registry page
README

terraform-aws-ecs-app ![Lint Status](https://github.com/DNXLabs/terraform-aws-ecs-app/actions) ![LICENSE](https://github.com/DNXLabs/terraform-aws-ecs-app/blob/master/LICENSE) 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)
NameTypeDescriptionDefault
namestringName of your ECS service required
vpc_idstringVPC ID to deploy this app to required
alb_arnstringALB ARN created by ECS cluster module required
efs_mappingmap(string)A map of efs volume ids and paths to mount into the default task definition{}
auth_oidc_authorization_endpointstringAuthorization endpoint for OIDC (Google: https://accounts.google.com/o/oauth2/v2""
dynamic_stickinessanyTarget Group stickiness. Used in dynamic block.[]
internal_alb_listener_arnstring""
task_role_arnstringExisting task role ARN created by ECS cluster modulenull
service_deployment_minimum_healthy_percentnumberMinimum healthy percentage during deployments100
cpunumberHard limit for CPU for the container0
platform_versionstringThe platform version on which to run your service. Only applicable for launch_ty"LATEST"
log_subscription_filter_role_arnstring""
ordered_placement_strategylist(object({ field = striService level strategy rules that are taken into consideration during task place[]
alarm_prefixstringString prefix for cloudwatch alarms. (Optional)"alarm"
auth_oidc_client_secretstringClient Secret for OIDC authentication""
alarm_ecs_running_tasks_thresholdnumberAlarm when the number of ecs service running tasks is lower than a certain value0
hostname_redirectsstringList of hostnames to redirect to the main one, comma-separated""
service_health_check_grace_period_secondsnumberTime until your container starts serving requests0
alb_namestringALB name - Required if it is an internal one""
commandlist(string)Command to run on containernull
placement_constraintslist(object({ type =Rules that are taken into consideration during task placement. Maximum number of[]
auth_oidc_enabledboolEnables OIDC-authenticated listener rulefalse
enable_scheduleboolEnables schedule to shut down and start up instances outside business hours.false
… and 10 more inputs
Outputs (1)
aws_cloudwatch_log_group_arn
Resources (19)
aws_appautoscaling_policyaws_appautoscaling_scheduled_actionaws_appautoscaling_targetaws_cloudwatch_event_ruleaws_cloudwatch_event_targetaws_cloudwatch_log_groupaws_cloudwatch_log_subscription_filteraws_cloudwatch_metric_alarmaws_ecs_serviceaws_ecs_task_definitionaws_efs_access_pointaws_iam_policyaws_iam_roleaws_iam_role_policyaws_iam_role_policy_attachmentaws_lb_listener_ruleaws_lb_target_groupaws_route53_recordrandom_string
Details
FrameworkTerraform Module
LanguageHCL
Version7.5.0
Cloud AWS
★ Stars16
Forks21
Total downloads6.1k
Inputs50
Outputs1
Resources19
LicenseApache-2.0
NamespaceDNXLabs
Updated