Skip to content

Instantly share code, notes, and snippets.

@anilchalissery
Created June 11, 2022 08:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anilchalissery/483ef091cdb0afe44415ee444ff268f5 to your computer and use it in GitHub Desktop.
Save anilchalissery/483ef091cdb0afe44415ee444ff268f5 to your computer and use it in GitHub Desktop.
module "example-prod-backend-service" {
source = "../../multiport-ecs"
environment = "example-prod"
accountid = "222222222222"
region = "us-east-1"
name = "backend"
role = "arn:aws:iam::222222222222:role/ecsTaskExecutionRole"
target_group_name1 = "backend"
target_group_protocol1 = "HTTP"
target_group_name2 = "socket"
target_group_protocol2 = "HTTP"
vpc_id = "vpc-02add95bdaaeb59c4"
aws_subnet_1 = "subnet-002669c9299adbe87"
aws_subnet_2 = "subnet-0576c382d03ea4ab3"
ecs_security_group = "sg-0a17caef5984fa606"
health_check_path = "/"
health_check_code = 200
cluster_name = "clustername"
service_desired_count = 0
container_port1 = 3005
container_port2 = 3007
http_listener_arn = "arn:aws:elasticloadbalancing:ap-south-1:222222222222:listener/app/webapp/b79f9b6af059c4e1/91cbb2f32af3271f"
https_listener_arn = "arn:aws:elasticloadbalancing:ap-south-1:222222222222:listener/app/webapp/b79f9b6af059c4e1/72731108fe76a7f3"
host1 = "backend.prod.example.com"
host2 = "socket.prod.example.com"
retention_days = "14"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment