Skip to content

Latest commit

 

History

History
70 lines (55 loc) · 4.66 KB

File metadata and controls

70 lines (55 loc) · 4.66 KB

cluster-alb-service

This repo uses asdf to manage the terraform CLI and the various other tools it depends upon.

 Choose a make command to run

  init    project initialization - install tools and register git hook

Requirements

Name Version
terraform >= 1.0
aws ~> 5.0

Providers

Name Version
aws ~> 5.0

Modules

Name Source Version
alb terraform-aws-modules/alb/aws ~> 9.0
ecs_cluster terraform-aws-modules/ecs/aws//modules/cluster ~> 5.6
ecs_service terraform-aws-modules/ecs/aws//modules/service ~> 5.6

Resources

Name Type
aws_ecr_repository.main resource
aws_service_discovery_private_dns_namespace.this resource
aws_service_discovery_service.this resource
aws_subnet.service data source
aws_subnets.alb data source
aws_subnets.service data source
aws_vpc.vpc data source

Inputs

Name Description Type Default Required
alb_subnet_names The list of subnet names you wan to deploy the ALB into list(string) n/a yes
container_name The name of the container string "app" no
container_port The port the container will listen on, used for load balancer health check. Best practice is that this value is higher than 1024 so the container processes isn't running at root. number 8080 no
health_check A map containing configuration for the health check string "/health" no
image container image to initially bootstrap. future images can be deployed using a separate mechanism string "public.ecr.aws/jritsema/defaultbackend" no
name The name of this template (e.g., my-app-prod) string n/a yes
region The AWS region to deploy to (e.g., us-east-1) string "us-east-1" no
service_subnet_names The list of subnet names you wan to deploy the service into. Note that these subnets will need network access to ECR. list(string) n/a yes
tags A map of tags to apply to all resources map(string) {} no
vpc_name The name of the VPC you want to deploy the service into. string n/a yes

Outputs

Name Description
ecs_cluster_arn The arn of the ecs cluster that was created or referenced
ecs_cluster_name The name of the ecs cluster that was created or referenced
ecs_service_name The arn of the fargate ecs service that was created
endpoint The http endpoint
lb_arn The arn of the load balancer
lb_dns The load balancer DNS name