alicloud_ddoscoo_port

Provides a Anti-DDoS Pro Port resource.

For information about Anti-DDoS Pro Port and how to use it, see What is Port.

Example Usage

Basic Usage

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

variable "name" {
  default = "tf-example"
}
resource "alicloud_ddoscoo_instance" "default" {
  name              = var.name
  bandwidth         = "30"
  base_bandwidth    = "30"
  service_bandwidth = "100"
  port_count        = "50"
  domain_count      = "50"
  period            = "1"
  product_type      = "ddoscoo"
}

resource "alicloud_ddoscoo_port" "default" {
  instance_id       = alicloud_ddoscoo_instance.default.id
  frontend_port     = "7001"
  backend_port      = "7002"
  frontend_protocol = "tcp"
  real_servers      = ["1.1.1.1", "2.2.2.2"]
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

Anti-DDoS Pro Port can be imported using the id, e.g.

$ terraform import alicloud_ddoscoo_port.example <instance_id>:<frontend_port>:<frontend_protocol>