Skip to content

Commit

Permalink
polling available lambdas before calling proxy lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
jpl-btlunsfo committed Sep 10, 2024
1 parent deaf761 commit c6db1a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions terraform-unity/modules/terraform-unity-sps-airflow/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,10 @@ EOT
})
}

data "aws_lambda_functions" "lambda_check_all" {}

resource "aws_lambda_invocation" "unity_proxy_lambda_invocation" {
count = contains(data.aws_lambda_functions.lambda_check_all.function_names,"unity-${var.venue}-httpdproxymanagement") ? 1 : 0
function_name = "unity-${var.venue}-httpdproxymanagement"
input = "{}"
triggers = {
Expand Down

0 comments on commit c6db1a9

Please sign in to comment.