arvancloud_cdn_domain_firewall_rule (Resource)
Manages Arvancloud CDN WAF rules. WAF rules allow you to define custom security rules for your domains.
Example Usage
resource "arvancloud_cdn_domain_firewall_rule" "example" {
domain = "cdn-terraform.ir"
name = "terraform2"
action = "bypass"
action_details = {
bypass = {
waf = false
challenge = true
rlimit = false
}
}
filter_expr = "(ip.src in {1.1.1.1})"
}
Schema
Required
action
(String)action_details
(Attributes) (see below for nested schema)domain
(String) UUID or the name of the domain.filter_expr
(String) Wireshark like filter expression of the WAF rule.name
(String) Name of the WAF rule.
Optional
is_enabled
(Boolean)note
(String) Note for the WAF rule.
Read-Only
id
(String) UUID of the rule.last_updated
(String) Timestamp of the last Terraform update of the WAF rule.
Nested Schema for action_details
Optional:
bypass
(Attributes) (see below for nested schema)challenge
(Attributes) (see below for nested schema)
Nested Schema for action_details.bypass
Required:
challenge
(Boolean)rlimit
(Boolean)waf
(Boolean)
Nested Schema for action_details.challenge
Required:
https_only
(Boolean)mode
(Number)ttl
(Number)
Import
Import is supported using the following syntax:
terraform import arvancloud_cdn_domain_firewall_rule.example cdn-terraform.ir,1a700f5a-acef-4786-9192-4960dcf18449