Update to Email Domain

This commit is contained in:
Alexander Hosking 2022-03-26 23:08:11 -04:00
parent 3e12c8a90c
commit 905c2dfe61

View File

@ -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"]
}
}