Provides a WAF Instance resource to create instance in the Web Application Firewall.
For information about WAF and how to use it, see What is Alibaba Cloud WAF.
data "alicloud_waf_instances" "default" {}
resource "alicloud_waf_instance" "default" {
count = length(data.alicloud_waf_instances.default.instances) > 0 ? 0 : 1
big_screen = "0"
exclusive_ip_package = "1"
ext_bandwidth = "50"
ext_domain_package = "1"
package_code = "version_3"
prefessional_service = "false"
subscription_type = "Subscription"
period = 1
waf_log = "false"
log_storage = "3"
log_time = "180"
resource_group_id = "rs-abc12345"
}
The following arguments are supported:
big_screen
- (Required, String) Specify whether big screen is supported. Valid values: ["0", "1"]. "0" for false and "1" for true.exclusive_ip_package
- (Required, String) Specify the number of exclusive WAF IP addresses.ext_bandwidth
- (Required, String) The extra bandwidth. Unit: Mbit/s.ext_domain_package
- (Required, String) The number of extra domains.log_storage
- (Required, String) Log storage size. Unit: T. Valid values: [3, 5, 10, 20, 50].log_time
- (Required, String) Log storage period. Unit: day. Valid values: [180, 360].modify_type
- (Optional) Type of configuration change. Valid value: Upgrade.package_code
- (Required, String) Subscription plan:
period
- (ForceNew) Service time of Web Application Firewall.
prefessional_service
- (Required, String) Specify whether professional service is supported. Valid values: ["true", "false"]renew_period
- (ForceNew) Renewal period of WAF service. Unit: monthrenewal_status
- (ForceNew) Renewal status of WAF service. Valid values:
resource_group_id
- (Optional) The resource group ID.region
- (Optional, Available in 1.139.0+) The instance region ID.subscription_type
- (Required, String) Subscription of WAF service. Valid values: ["Subscription", "PayAsYouGo"].waf_log
- (Required, String) Specify whether Log service is supported. Valid values: ["true", "false"] The following attributes are exported:
id
- This resource instance id.status
- The status of the instance.WAF instance can be imported using the id, e.g.
$ terraform import alicloud_waf_instance.default waf-cn-132435