alicloud_ddosbgp_instances

This data source provides a list of Anti-DDoS Advanced instances in an Alibaba Cloud account according to the specified filters.

Example Usage

provider "alicloud" {
  region = "cn-beijing"
}

variable "name" {
  default = "tf-example"
}

resource "alicloud_ddosbgp_instance" "instance" {
  name             = var.name
  base_bandwidth   = 20
  bandwidth        = -1
  ip_count         = 100
  ip_type          = "IPv4"
  normal_bandwidth = 100
  type             = "Enterprise"
}

data "alicloud_ddosbgp_instances" "instance" {
  name_regex = "ddosbgp"
}

output "instance" {
  value = data.alicloud_ddosbgp_instances.instance.*.id
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported in addition to the arguments listed above: