Add CF access policy to Money

This commit is contained in:
Alexander Hosking 2022-03-26 22:59:02 -04:00
parent 0f46a89e40
commit 3e12c8a90c

View File

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