Skip to content

Commit

Permalink
update 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 860764d commit 276a28d
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 97 deletions.
2 changes: 1 addition & 1 deletion infrastructure/04_rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ resource "null_resource" "create_databases" {

provisioner "local-exec" {
command = <<EOT
mysql -h ${aws_db_instance.default.address} -P 3306 -uadmin -p${var.db_password} -e "CREATE DATABASE ${each.value.app}_${each.value.env}_db;"
mysql -h ${aws_db_instance.default.address} -P 3306 -uadmin -p${var.db_password} -e "CREATE DATABASE ${each.value.app}-${each.value.env};"
EOT
}

Expand Down
9 changes: 9 additions & 0 deletions infrastructure/05_apprunner.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ 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
Loading

0 comments on commit 276a28d

Please sign in to comment.