alicloud_ddosbgp_ip
更新时间:
Provides a Anti-DDoS Pro (DdosBgp) Ip resource.
For information about Anti-DDoS Pro (DdosBgp) Ip and how to use it, see What is Ip.
-> NOTE: Available since v1.180.0.
Example Usage
Basic Usage
provider "alicloud" {
  region = "cn-hangzhou"
}
variable "name" {
  default = "terraform-example"
}
data "alicloud_account" "default" {
}
resource "alicloud_ddosbgp_instance" "default" {
  name             = var.name
  base_bandwidth   = 20
  bandwidth        = -1
  ip_count         = 100
  ip_type          = "IPv4"
  normal_bandwidth = 100
  type             = "Enterprise"
}
resource "alicloud_eip_address" "default" {
  address_name = var.name
}
resource "alicloud_ddosbgp_ip" "default" {
  instance_id = alicloud_ddosbgp_instance.default.id
  ip          = alicloud_eip_address.default.ip_address
  member_uid  = data.alicloud_account.default.id
}
Argument Reference
The following arguments are supported:
instance_id- (Required, ForceNew) The ID of the Anti-DDoS Origin instance.ip- (Required, ForceNew) The IP address that you want to add.member_uid- (Optional, ForceNew, Available since v1.225.1) The member to which the asset belongs.resource_group_id- (Deprecated since v1.259.0) Fieldresource_group_idhas been deprecated from provider version 1.259.0.
Attributes Reference
The following attributes are exported:
id- The ID of the resource supplied above.The value is formulated as<instance_id>:<ip>.status- The status of the IP address.
Timeouts
The timeouts block allows you to specify timeouts for certain actions:
create- (Defaults to 5 mins) Used when create the Ip.delete- (Defaults to 5 mins) Used when delete the Ip.
Import
Anti-DDoS Pro (DdosBgp) Ip can be imported using the id, e.g.
$ terraform import alicloud_ddosbgp_ip.example <instance_id>:<ip>
该文章对您有帮助吗?