View in Terraform Registry
Protect your applications with Azion security resources. Manage firewall, WAF, and network lists through Terraform.
The security resources allow you to configure protection against threats, geolocation blocking, rate limiting, and much more.
Available Resources
Available Data Sources
azion_firewall_main_setting
Basic Example
resource "azion_firewall_main_setting" "example" {
Main Arguments
| Argument | Type | Required | Description |
|---|
name | string | Yes | Firewall name |
active | bool | No | Whether the firewall is active |
For the complete list of arguments, see the Terraform Registry.
azion_network_list
Basic Example
resource "azion_network_list" "blocked_ips" {
Main Arguments
| Argument | Type | Required | Description |
|---|
name | string | Yes | List name |
list_type | string | Yes | List type (ip_cidr, countries, asns) |
azion_waf_rule_set
Basic Example
resource "azion_waf_rule_set" "example" {
Complete Example
source = "aziontech/azion"
api_token = var.api_token
# Create network list for blocked IPs
resource "azion_network_list" "blocked_ips" {
resource "azion_firewall_main_setting" "my_firewall" {
# Link to workload/application
resource "azion_waf_rule_set" "my_waf" {
value = azion_firewall_main_setting.my_firewall.id