From ee87189a2490d03d9e1f20a26c0bf69f132bebad Mon Sep 17 00:00:00 2001 From: imreddy13 <132504814+imreddy13@users.noreply.github.com> Date: Wed, 3 Apr 2024 21:51:27 -0700 Subject: [PATCH] Revert "Add Validation for IAP domain and allowlist" (#557) Revert "Add Validation for IAP domain and allowlist (#542)" This reverts commit dd7668e189f7a5bba4d08e0213b5641dd01744ba. --- modules/iap/iap.tf | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/modules/iap/iap.tf b/modules/iap/iap.tf index e472a3af9..42f71361c 100644 --- a/modules/iap/iap.tf +++ b/modules/iap/iap.tf @@ -21,23 +21,6 @@ data "google_project" "project" { project_id = var.project_id } -## Check if domain and members_allowlist is provided -data "null_data_source" "domain_validation" { - inputs = {} - - lifecycle { - precondition { - condition = var.domain != "" - error_message = "IAP configuration requires domain name, Please provide a valid domain name for ${var.app_name} application." - } - - precondition { - condition = length(var.members_allowlist) != 0 - error_message = "IAP configuration requires allowlisting users. Please provide a valid allowlist for ${var.app_name} application." - } - } -} - # Creates a "Brand", equivalent to the OAuth consent screen on Cloud console resource "google_iap_brand" "project_brand" { count = var.create_brand ? 1 : 0