» alicloud_ddosbgp_instance

Anti-DDoS Advanced instance resource. "Ddosbgp" is the short term of this product.

» Example Usage

Basic Usage

provider "alicloud" {
  endpoints {
    bssopenapi = "business.aliyuncs.com"
  }
}

resource "alicloud_ddosbgp_instance" "instance" {
  name              = "yourDdosbgpInstanceName"
  base_bandwidth    = "20"
  bandwidth         = "201"
  ip_count          = "100"
  ip_type           = "IPv4"
}

» Argument Reference

The following arguments are supported:

  • type - (Required, ForceNew) Type of the instance. Valid values: Enterprise,Professional. Default to Enterprise
  • name - (Required) Name of the instance. This name can have a string of 1 to 63 characters.
  • base_bandwidth - (Optional, ForceNew) Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to 20.
  • bandwidth - (Required, ForceNew) Elastic defend bandwidth of the instance. This value must be larger than the base defend bandwidth. Valid values: 51,91,101,201,301. The unit is Gbps.
  • ip_count - (Required, ForceNew) IP count of the instance. Valid values: 100.
  • ip_type - (Required, ForceNew) IP version of the instance. Valid values: IPv4,IPv6.
  • period - (Optional, ForceNew) The duration that you will buy Ddosbgp instance (in month). Valid values: [1~9], 12, 24, 36. Default to 12. At present, the provider does not support modify "period".

» Attributes Reference

The following attributes are exported:

  • id - The ID of the instance resource of Ddosbgp. ## Import

Ddosbgp instance can be imported using the id, e.g.

$ terraform import alicloud_ddosbgp.example ddosbgp-abc123456