Skip to content

Commit

Permalink
fix port
Browse files Browse the repository at this point in the history
  • Loading branch information
Chandra Reddy authored and Chandra Reddy committed Aug 15, 2024
1 parent 276a28d commit adcbc2a
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions infrastructure/05_apprunner.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ resource "aws_apprunner_service" "app_services" {

source_configuration {
image_repository {
image_configuration {
port = "8000"
}
image_identifier = "654654512735.dkr.ecr.us-east-1.amazonaws.com/${each.value.app}-${each.value.env}:latest"
image_repository_type = "ECR"
}
Expand All @@ -19,15 +22,6 @@ resource "aws_apprunner_service" "app_services" {
memory = "2048"
}

health_check_configuration {
protocol = "TCP" # Can be HTTP or TCP
interval_seconds = 10 # Time between health checks
timeout_seconds = 20 # Time to wait for a health check response
healthy_threshold = 3 # Number of consecutive health checks before considering the service healthy
unhealthy_threshold = 3 # Number of consecutive health checks before considering the service unhealthy
port = 8000 # Port on which the health check is performed
}

auto_scaling_configuration_arn = aws_apprunner_auto_scaling_configuration_version.app_scaling.arn

tags = {
Expand Down

0 comments on commit adcbc2a

Please sign in to comment.