Skip to content

jrpradojr/terraform-aws-ecs-app

 
 

Repository files navigation

terraform-aws-ecs-app

AWS ECS Application Module

This module is designed to be used with DNXLabs/terraform-aws-ecs.

Inputs

Name Description Type Default Required
alb_dns_name ALB DNS Name that CloudFront will point as origin string n/a yes
alb_listener_https_arn ALB HTTPS Listener created by ECS cluster module string n/a yes
autoscaling_cpu Enables autoscaling based on average CPU tracking string "false" no
autoscaling_max Max number of containers to scale with autoscaling string "4" no
autoscaling_min Min number of containers to scale with autoscaling string "1" no
autoscaling_scale_in_cooldown Cooldown in seconds to wait between scale in events string "300" no
autoscaling_scale_out_cooldown Cooldown in seconds to wait between scale out events string "300" no
autoscaling_target_cpu Target average CPU percentage to track for autoscaling string "50" no
certificate_arn Certificate for this app to use in CloudFront (US), must cover hostname and (ideally) hostname_blue passed. string n/a yes
cluster_name string "Name of existing ECS Cluster to deploy this app to" no
container_port Port your container listens (used in the placeholder task definition) string "8080" no
cpu Hard limit for CPU for the container string "0" no
healthcheck_path string "/" no
hosted_zone Existing Hosted Zone domain to add hostnames as DNS records string n/a yes
hostname Hostname to create DNS record for this app string n/a yes
hostname_blue Blue hostname for testing the app string n/a yes
hostname_create Create hostname in the hosted zone passed? string "true" no
hostname_origin A hostname covered by the ALB certificate for HTTPS traffic between CloudFront and ALB string n/a yes
hostname_redirects List of hostnames to redirect to the main one, comma-separated string "" no
image Docker image to deploy (can be a placeholder) string n/a yes
memory Hard memory of the container string "512" no
name Name of your ECS service string n/a yes
port Port for target group to listen string "80" no
service_role_arn Existing service role ARN created by ECS cluster module string n/a yes
task_role_arn Existing task role ARN created by ECS cluster module string n/a yes
vpc_id VPC ID to deploy this app to string n/a yes

Authors

Module managed by Allan Denot.

License

Apache 2 Licensed. See LICENSE for full details.

About

AWS ECS Application Module

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • HCL 100.0%