ecs-web-service
azavea/ecs-web-service/aws
A Terraform module to create an Amazon Web Services (AWS) EC2 Container Service (ECS) service associated with an Application Load Balancer (ALB).
Install
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)
| Name | Type | Description | Default |
|---|---|---|---|
| name | string | required | |
| public_subnet_ids | list | required | |
| access_log_bucket | string | required | |
| port | string | required | |
| task_definition_id | string | required | |
| container_name | string | required | |
| container_port | string | required | |
| vpc_id | string | required | |
| access_log_prefix | string | required | |
| cluster_name | string | required | |
| ssl_certificate_arn | string | required | |
| ecs_service_role_name | string | required | |
| scale_up_cooldown_seconds | string | "300" | |
| desired_count | string | "1" | |
| deployment_max_percent | string | "200" | |
| environment | string | "Unknown" | |
| health_check_path | string | "/" | |
| min_count | string | "1" | |
| max_count | string | "1" | |
| project | string | "Unknown" | |
| security_group_ids | list | [] | |
| deployment_min_healthy_percent | string | "100" | |
| scale_down_cooldown_seconds | string | "300" |
Outputs (7)
namelb_zone_idlb_security_group_idappautoscaling_policy_scale_up_arnappautoscaling_policy_scale_down_arnidlb_dns_nameResources (7)
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,