From 31dabebc2ed8cb543b0ca3983858dc6f9318b3e0 Mon Sep 17 00:00:00 2001 From: Sourav Kundu Date: Wed, 26 Jun 2024 16:00:34 -0500 Subject: [PATCH 1/2] added description for readability --- infra/ssm_parameter.tf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/infra/ssm_parameter.tf b/infra/ssm_parameter.tf index 901aa09..2c884a9 100644 --- a/infra/ssm_parameter.tf +++ b/infra/ssm_parameter.tf @@ -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}", From 2686e4dcc2d349cf0b1356b935fed09bd25d9cf1 Mon Sep 17 00:00:00 2001 From: Sourav Kundu Date: Wed, 26 Jun 2024 16:01:06 -0500 Subject: [PATCH 2/2] #54 added healthcheck logic --- infra/load_balancer.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/load_balancer.tf b/infra/load_balancer.tf index a5e4094..5cfbf77 100644 --- a/infra/load_balancer.tf +++ b/infra/load_balancer.tf @@ -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" } }