Security resources
Azion Terraform Provider resources and data sources that manage firewalls, their rules and function instances, WAFs, and network lists.
The security resources of the Azion Terraform Provider configure what stops a request before it reaches your application: protection against threats, geolocation blocking, and rate limiting. The provider manages a Firewall and its rules and function instances, Web Application Firewall (WAF) settings and rule sets, and Network Lists with six resources. Twelve data sources read the same objects back, one that lists them and one that reads a single object per resource type.
Security resources
| Resource | Description |
|---|---|
azion_firewall_main_setting | Creates and manages the main settings of a firewall. |
azion_firewall_rule_engine | Creates and manages a Rules Engine rule of a firewall. |
azion_firewall_functions_instance | Creates and manages a function instance in a firewall. |
azion_waf | Creates and manages a WAF. |
azion_waf_rule_set | Creates and manages a WAF rule set. |
azion_network_list | Creates and manages a network list of IP addresses and CIDR ranges, countries, or ASNs. |
azion_firewall_main_setting requires name, a string that holds the name of the firewall, and accepts active, a boolean that sets whether the firewall is active. azion_network_list requires name, a string that holds the name of the list, and list_type, a string that takes ip_cidr, countries, or asns. azion_waf_rule_set takes a name. The Terraform Registry page of each resource lists every argument.
Data sources
| Data source | Description |
|---|---|
azion_firewall_main_settings | Lists firewalls. |
azion_firewall_main_setting | Reads one firewall. |
azion_firewall_rules_engine | Lists the Rules Engine rules of firewalls. |
azion_firewall_rule_engine | Reads one Rules Engine rule of a firewall. |
azion_firewall_function_instances | Lists the function instances of firewalls. |
azion_firewall_functions_instance | Reads one function instance of a firewall. |
azion_wafs | Lists WAFs. |
azion_waf | Reads one WAF. |
azion_waf_rule_sets | Lists WAF rule sets. |
azion_waf_rule_set | Reads one WAF rule set. |
azion_network_lists | Lists network lists. |
azion_network_list | Reads one network list. |
Example
This configuration pins the provider, creates a network list of IP ranges, an active firewall, and a WAF rule set, and outputs the ID of the firewall. It reads your personal token from the api_token variable that the Azion Terraform Provider quickstart declares.