From bbbbd2542006a871dccc77f4d4cbcec34c983b0f Mon Sep 17 00:00:00 2001 From: AJ Wolski Date: Wed, 16 Mar 2022 22:31:45 +0100 Subject: [PATCH] Fix authenication > authentication --- main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index 5d087058..96d7efda 100644 --- a/main.tf +++ b/main.tf @@ -25,7 +25,7 @@ locals { secret_webhook_key = local.has_secrets || var.atlantis_github_webhook_secret != "" ? var.atlantis_gitlab_user_token != "" ? "ATLANTIS_GITLAB_WEBHOOK_SECRET" : var.atlantis_github_user_token != "" || var.atlantis_github_webhook_secret != "" ? "ATLANTIS_GH_WEBHOOK_SECRET" : "ATLANTIS_BITBUCKET_WEBHOOK_SECRET" : "" # determine if the alb has authentication enabled, otherwise forward the traffic unauthenticated - alb_authenication_method = length(keys(var.alb_authenticate_oidc)) > 0 ? "authenticate-oidc" : length(keys(var.alb_authenticate_cognito)) > 0 ? "authenticate-cognito" : "forward" + alb_authentication_method = length(keys(var.alb_authenticate_oidc)) > 0 ? "authenticate-oidc" : length(keys(var.alb_authenticate_cognito)) > 0 ? "authenticate-cognito" : "forward" # ECS - existing or new? ecs_cluster_id = var.create_ecs_cluster ? module.ecs.ecs_cluster_id : var.ecs_cluster_id @@ -245,7 +245,7 @@ module "alb" { port = 443 protocol = "HTTPS" certificate_arn = var.certificate_arn == "" ? module.acm.acm_certificate_arn : var.certificate_arn - action_type = local.alb_authenication_method + action_type = local.alb_authentication_method authenticate_oidc = var.alb_authenticate_oidc authenticate_cognito = var.alb_authenticate_cognito },