All checks were successful
Terraform Apply / Terraform Apply (push) Successful in 23s
56 lines
2.1 KiB
HCL
56 lines
2.1 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
|
|
# =============================================================================
|
|
|
|
#
|
|
|
|
# =============================================================================
|
|
# CLOUDFLARE : Access : Tags
|
|
# =============================================================================
|
|
|
|
#
|
|
resource "cloudflare_zero_trust_access_tag" "example_zero_trust_access_tag" {
|
|
account_id = local.cloudflare_account_id
|
|
name = "engineers"
|
|
} |