Skip to content

Commit

Permalink
Update for Phoenix
Browse files Browse the repository at this point in the history
  • Loading branch information
reachfh committed Jun 28, 2020
1 parent 8b310d5 commit e131a27
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 74 deletions.
75 changes: 38 additions & 37 deletions terraform/foo/dev/target-group-app-ecs-1/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -1,43 +1,44 @@
terraform {
source = "${get_terragrunt_dir()}/../../../modules//target-group"
}
dependency "vpc" {
config_path = "../vpc"
}
dependency "lb" {
config_path = "../lb-public"
}
dependency "zone" {
config_path = "../route53-public"
# config_path = "../route53-cdn" # separate CDN domain
}
include {
path = find_in_parent_folders()
}
terraform {
source = "${get_terragrunt_dir()}/../../../modules//target-group"
}
dependency "vpc" {
config_path = "../vpc"
}
dependency "lb" {
config_path = "../lb-public"
}
dependency "zone" {
config_path = "../route53-public"
# config_path = "../route53-cdn" # separate CDN domain
}
include {
path = find_in_parent_folders()
}

inputs = {
comp = "app"
name = "app-ecs-1"
inputs = {
comp = "app"
name = "app-ecs-1"

hosts = ["app-ecs.${dependency.zone.outputs.name}"]
hosts = ["app-ecs.${dependency.zone.outputs.name_nodot}"]

port = 80
protocol = "HTTP"
port = 4000
protocol = "HTTP"

health_check = {
path = "/"
interval = 30
timeout = 10
healthy_threshold = 2
unhealthy_threshold = 2
matcher = "200"
}
health_check = {
path = "/"
# interval = 30 # default 30
# timeout = 10 # default 5
healthy_threshold = 2 # default 3
unhealthy_threshold = 2 # default 3
matcher = "200"
# matcher = "200,302"
}

# stickiness = {
# type = "lb_cookie"
# }
# stickiness = {
# type = "lb_cookie"
# }

listener_arn = dependency.lb.outputs.listener_arn
vpc_id = dependency.vpc.outputs.vpc_id
target_type = "ip"
}
listener_arn = dependency.lb.outputs.listener_arn
vpc_id = dependency.vpc.outputs.vpc_id
target_type = "ip"
}
76 changes: 39 additions & 37 deletions terraform/foo/dev/target-group-app-ecs-2/terragrunt.hcl
Original file line number Diff line number Diff line change
@@ -1,43 +1,45 @@
terraform {
source = "${get_terragrunt_dir()}/../../../modules//target-group"
}
dependency "vpc" {
config_path = "../vpc"
}
dependency "lb" {
config_path = "../lb-public"
}
dependency "zone" {
config_path = "../route53-public"
# config_path = "../route53-cdn" # separate CDN domain
}
include {
path = find_in_parent_folders()
}
terraform {
source = "${get_terragrunt_dir()}/../../../modules//target-group"
}
dependency "vpc" {
config_path = "../vpc"
}
dependency "lb" {
config_path = "../lb-public"
}
dependency "zone" {
config_path = "../route53-public"
# config_path = "../route53-cdn" # separate CDN domain
}
include {
path = find_in_parent_folders()
}

inputs = {
comp = "app"
name = "app-ecs-2"
inputs = {
comp = "app"
name = "app-ecs-2"

hosts = ["app-ecs.${dependency.zone.outputs.name}"]
hosts = ["app-ecs.${dependency.zone.outputs.name_nodot}"]

port = 80
protocol = "HTTP"
port = 4000
protocol = "HTTP"

health_check = {
path = "/"
interval = 30
timeout = 10
healthy_threshold = 2
unhealthy_threshold = 2
matcher = "200"
}
health_check = {
path = "/"
# interval = 30 # default 30
# timeout = 10 # default 5
healthy_threshold = 2 # default 3
unhealthy_threshold = 2 # default 3
matcher = "200,302"
}

# stickiness = {
# type = "lb_cookie"
# }
# stickiness = {
# type = "lb_cookie"
# }

listener_arn = dependency.lb.outputs.listener_arn
vpc_id = dependency.vpc.outputs.vpc_id
target_type = "ip"
}
listener_rule = false

listener_arn = dependency.lb.outputs.listener_arn
vpc_id = dependency.vpc.outputs.vpc_id
target_type = "ip"
}

0 comments on commit e131a27

Please sign in to comment.