From 905c2dfe617cd427474adadfac9c392c7a4f1994 Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Sat, 26 Mar 2022 23:08:11 -0400 Subject: [PATCH] Update to Email Domain --- ahoskingit/terraform/cloudflare_access.tf | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/ahoskingit/terraform/cloudflare_access.tf b/ahoskingit/terraform/cloudflare_access.tf index 997d372..1d4261c 100644 --- a/ahoskingit/terraform/cloudflare_access.tf +++ b/ahoskingit/terraform/cloudflare_access.tf @@ -1,3 +1,12 @@ +resource "cloudflare_access_group" "family" { + account_id = var.CLOUDFLARE_ACCOUNT_ID + name = "family group" + + include { + email_domain = ["@ahosking.com"] + } +} + resource "cloudflare_access_application" "influx" { account_id = var.CLOUDFLARE_ACCOUNT_ID name = "influx" @@ -29,10 +38,10 @@ resource "cloudflare_access_policy" "money" { precedence = "1" decision = "allow" include { - email = ["@ahosking.com"] + email_domain = ["@ahosking.com"] } require { - email = ["@ahosking.com"] + email_domain = ["@ahosking.com"] } }