Skip to content

Commit

Permalink
Revert "Add Validation for IAP domain and allowlist" (GoogleCloudPlat…
Browse files Browse the repository at this point in the history
…form#557)

Revert "Add Validation for IAP domain and allowlist (GoogleCloudPlatform#542)"

This reverts commit dd7668e.
  • Loading branch information
imreddy13 committed Apr 4, 2024
1 parent 2508a38 commit ee87189
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions modules/iap/iap.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee87189

Please sign in to comment.