Files
terraform-cloudflare-tunnel…/access.tf
Hubert Cornet 78beac717a
Some checks failed
Terraform Apply / Terraform Apply (push) Failing after 20s
Update access.tf
2025-11-14 18:27:35 +01:00

47 lines
1.7 KiB
HCL

# =============================================================================
# CLOUDFLARE : Access : Applications
# =============================================================================
#
resource "cloudflare_zero_trust_access_application" "example_zero_trust_access_application" {
account_id = local.cloudflare_account_id
name = "Home Network Access Application"
domain = "home.tips-of-mine.org"
type = "self_hosted"
session_duration = "24h"
skip_interstitial = true
tags = ["engineers"]
}
data "cloudflare_zero_trust_access_application" "example_zero_trust_access_application" {
account_id = local.cloudflare_account_id
app_id = cloudflare_zero_trust_access_application.example_zero_trust_access_application.id
}
# =============================================================================
# CLOUDFLARE : Access : Policies
# =============================================================================
#
#resource "cloudflare_zero_trust_access_policy" "home_network_policy" {
# account_id = local.cloudflare_account_id
# application_id = cloudflare_zero_trust_access_application.example_zero_trust_access_application.id
# name = "Home Network Access Policy"
# decision = "allow"
# include [{
# email = "thedjinhn@gmail.com"
# }]
#}
# =============================================================================
# CLOUDFLARE : Access : Rule groups
# =============================================================================
#
# =============================================================================
# CLOUDFLARE : Access : Service auth
# =============================================================================
#