@@ -49,7 +49,7 @@ curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/gateway/rules \
4949
5050``` tf
5151resource "cloudflare_zero_trust_gateway_policy" "dns_whitelist_policy" {
52- account_id = var.account_id
52+ account_id = var.cloudflare_account_id
5353 name = "All-DNS-Domain-Allowlist"
5454 description = "Allowlist any known domains and hostnames"
5555 precedence = 0
@@ -105,7 +105,7 @@ curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/gateway/rules \
105105
106106``` tf
107107resource "cloudflare_zero_trust_gateway_policy" "dns_restrict_quarantined_users" {
108- account_id = var.account_id
108+ account_id = var.cloudflare_account_id
109109 name = "Quarantined-Users-DNS-Restricted-Access"
110110 description = "Restrict access for users included in an identity provider (IdP) user group for risky users"
111111 precedence = 10
@@ -189,7 +189,7 @@ curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/gateway/rules \
189189
190190``` tf
191191resource "cloudflare_zero_trust_gateway_policy" "dns_geolocation_block_policy" {
192- account_id = var.account_id
192+ account_id = var.cloudflare_account_id
193193 name = "All-DNS-GeoCountryIP-Blocklist"
194194 description = "Block traffic hosted in countries categorized as high security risks"
195195 precedence = 50
@@ -242,7 +242,7 @@ curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/gateway/rules \
242242
243243``` tf
244244resource "cloudflare_zero_trust_gateway_policy" "dns_blacklist_policy" {
245- account_id = var.account_id
245+ account_id = var.cloudflare_account_id
246246 name = "All-DNS-DomainTopLevel-Blocklist"
247247 description = "Block DNS queries of known risky TLDs"
248248 precedence = 60
@@ -296,7 +296,7 @@ curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/gateway/rules \
296296
297297``` tf
298298resource "cloudflare_zero_trust_gateway_policy" "dns_phishing_domains_block" {
299- account_id = var.account_id
299+ account_id = var.cloudflare_account_id
300300 name = "All-DNS-DomainPhishing-Blocklist"
301301 description = "Block misused domains used in phishing campaigns"
302302 precedence = 70
@@ -351,7 +351,7 @@ curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/gateway/rules \
351351
352352``` tf
353353resource "cloudflare_zero_trust_gateway_policy" "dns_resolvedip_blocklist_rule" {
354- account_id = var.account_id
354+ account_id = var.cloudflare_account_id
355355 name = "All-DNS-ResolvedIP-Blocklist"
356356 description = "Block specific IP addresses deemed to be a risk to the Organization"
357357 precedence = 80
@@ -409,7 +409,7 @@ curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/gateway/rules \
409409
410410``` tf
411411resource "cloudflare_zero_trust_gateway_policy" "block_dns_domain_host" {
412- account_id = var.account_id
412+ account_id = var.cloudflare_account_id
413413 name = "All-DNS-DomainHost-Blocklist"
414414 description = "Block specific domains or hosts that are malicious or pose a threat to your organization."
415415 precedence = 90
0 commit comments