diff --git a/ahoskingit/terraform/cloudflare_access.tf b/ahoskingit/terraform/cloudflare_access.tf index f1ae019..997d372 100644 --- a/ahoskingit/terraform/cloudflare_access.tf +++ b/ahoskingit/terraform/cloudflare_access.tf @@ -22,6 +22,20 @@ resource "cloudflare_access_application" "money" { ] } +resource "cloudflare_access_policy" "money" { + application_id = cloudflare_access_application.money.id + zone_id = cloudflare_zone.ahosking_com.id + name = "family" + precedence = "1" + decision = "allow" + include { + email = ["@ahosking.com"] + } + require { + email = ["@ahosking.com"] + } +} + resource "cloudflare_access_application" "movies" { account_id = var.CLOUDFLARE_ACCOUNT_ID name = "movies"