Skip to content

Commit

Permalink
Merge pull request #55 from kunduso/add-healthcheck
Browse files Browse the repository at this point in the history
Add healthcheck
  • Loading branch information
kunduso authored Jun 26, 2024
2 parents 63a9701 + 2686e4d commit 87e8438
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion infra/load_balancer.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ resource "aws_lb_target_group" "target_group" {
vpc_id = aws_vpc.this.id
health_check {
matcher = "200,301,302,404"
path = "/"
path = "/healthcheck"
}
}

Expand Down
7 changes: 4 additions & 3 deletions infra/ssm_parameter.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/ssm_parameter
resource "aws_ssm_parameter" "infra_output" {
name = "/${var.name}/output"
type = "SecureString"
key_id = aws_kms_key.custom_kms_key.id
name = "/${var.name}/output"
description = "Infrastructure layer resources."
type = "SecureString"
key_id = aws_kms_key.custom_kms_key.id
value = jsonencode({
"subnet_ids" : [for subnet in aws_subnet.private : subnet.id],
"security_group_id" : "${aws_security_group.custom_sg.id}",
Expand Down

0 comments on commit 87e8438

Please sign in to comment.