ecs-web-service

azavea/ecs-web-service/aws

Terraform Module HCL AWS

A Terraform module to create an Amazon Web Services (AWS) EC2 Container Service (ECS) service associated with an Application Load Balancer (ALB).

Install
module "ecs-web-service" {
source = "azavea/ecs-web-service/aws"
version = "0.4.0"
}
plain text: /constructs/tfmod-azavea-ecs-web-service-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-aws-ecs-web-service A Terraform module to create an Amazon Web Services (AWS) EC2 Container Service (ECS) service associated with an Application Load Balancer (ALB). Usage ``hcl resource "aws_security_group_rule" "app_lb_https_ingress" { type = "ingress" from_port = 443 to_port = 443 protocol = "tcp" cidr_blocks = ["0.0.0.0/0"] security_group_id = "${module.app_web_service.lb_security_group_id}" } resource "aws_ecs_task_definition" "app" { lifecycle { create_before_destroy = true } family = "ProductionApp" container_definitions = "..." } module "app_web_service" { source = "github.com/azavea/terraform-aws-ecs-web-service?ref=0.4.0" name = "App" vpc_id = "vpc-..." public_subnet_ids = ["subnet-...", "subnet-..."] access_log_bucket = "logs-bucket" access_log_prefix = "ALB" health_ch

Inputs (23)
NameTypeDescriptionDefault
namestring required
public_subnet_idslist required
access_log_bucketstring required
portstring required
task_definition_idstring required
container_namestring required
container_portstring required
vpc_idstring required
access_log_prefixstring required
cluster_namestring required
ssl_certificate_arnstring required
ecs_service_role_namestring required
scale_up_cooldown_secondsstring"300"
desired_countstring"1"
deployment_max_percentstring"200"
environmentstring"Unknown"
health_check_pathstring"/"
min_countstring"1"
max_countstring"1"
projectstring"Unknown"
security_group_idslist[]
deployment_min_healthy_percentstring"100"
scale_down_cooldown_secondsstring"300"
Outputs (7)
name
lb_zone_id
lb_security_group_id
appautoscaling_policy_scale_up_arn
appautoscaling_policy_scale_down_arn
id
lb_dns_name
Resources (7)
aws_albaws_alb_listeneraws_alb_target_groupaws_appautoscaling_policyaws_appautoscaling_targetaws_ecs_serviceaws_security_group
Details
FrameworkTerraform Module
LanguageHCL
Version0.4.0
Cloud AWS
★ Stars26
Forks19
Total downloads7.1k
Inputs23
Outputs7
Resources7
LicenseApache-2.0
Namespaceazavea
Updated