From 7ab76f5c3c07c7253734f5b885c4ddc6abab1e89 Mon Sep 17 00:00:00 2001 From: Maxwell Morris <48025321+m4xmorris@users.noreply.github.com> Date: Fri, 1 Dec 2023 18:05:35 +0000 Subject: [PATCH] Update outputs.tf --- outputs.tf | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/outputs.tf b/outputs.tf index 3bec1da..d5a2301 100644 --- a/outputs.tf +++ b/outputs.tf @@ -7,32 +7,3 @@ output "id" { value = cloudflare_access_application.application.id description = "ID of the application" } - -locals { - device_policy_rules_empty = length(flatten([var.device_policy_rules_windows, var.device_policy_rules_macos, var.device_policy_rules_ios, var.device_policy_rules_android])) == 0 -} - -output "github_policy_id" { - value = local.device_policy_rules_empty ? cloudflare_access_policy.github_policy[0].id : null - description = "ID of the GitHub policy, if it exists" -} - -output "device_policy_windows_id" { - value = local.device_policy_rules_empty ? null : length(cloudflare_access_policy.device_policy_windows) > 0 ? cloudflare_access_policy.device_policy_windows[0].id : null - description = "ID of the Device Policy (Windows)" -} - -output "device_policy_macos_id" { - value = local.device_policy_rules_empty ? null : length(cloudflare_access_policy.device_policy_macos) > 0 ? cloudflare_access_policy.device_policy_macos[0].id : null - description = "ID of the Device Policy (macOS)" -} - -output "device_policy_ios_id" { - value = local.device_policy_rules_empty ? null : length(cloudflare_access_policy.device_policy_ios) > 0 ? cloudflare_access_policy.device_policy_ios[0].id : null - description = "ID of the Device Policy (iOS)" -} - -output "device_policy_android_id" { - value = local.device_policy_rules_empty ? null : length(cloudflare_access_policy.device_policy_android) > 0 ? cloudflare_access_policy.device_policy_android[0].id : null - description = "ID of the Device Policy (Android)" -}