Repository navigation
Let Food Oasis staging's health check accept 302 - #300
Merged
Merged
Conversation
Contributor
|
Terraform plan in terraform Plan: 0 to add, 1 to change, 0 to destroy.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
!~ update in-place
Terraform will perform the following actions:
# module.food-oasis.module.food_oasis_fullstack_stage_service.aws_lb_target_group.this will be updated in-place
!~ resource "aws_lb_target_group" "this" {
id = "arn:aws:elasticloadbalancing:us-west-2:035866691871:targetgroup/food-oasis-fullstack-stage-d7f/87610d2dd5d543f1"
name = "food-oasis-fullstack-stage-d7f"
tags = {}
# (20 unchanged attributes hidden)
!~ health_check {
!~ matcher = "200,400,404" -> "200,302"
# (8 unchanged attributes hidden)
}
!~ target_health_state {
+ enable_unhealthy_connection_termination = false
+ unhealthy_draining_interval = 0
}
# (3 unchanged blocks hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.✅ Plan applied in Terraform apply (OIDC) #125 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #281.
The Food Oasis staging service from #299 keeps being replaced by ECS: its load balancer health check gets a 302. With
NODE_ENV=productionthe app redirects every request withoutX-Forwarded-Proto: httpsto HTTPS,/healthincluded, and the health check sends plain HTTP without that header.modules/container: newhealth_check_matchervariable. Its default is the old hardcoded200,400,404, so no other service changes.200,302. That only proves the process answers; moving/healthabove the redirect in hackforla/food-oasisserver/server.tswould let it go back to the default.Expected plan: one in-place update, the staging target group's matcher. Nothing else.