Provides a EIP Segment Address resource.
For information about EIP Segment Address and how to use it, see What is Segment Address.
Basic Usage
provider "alicloud" {
region = "cn-hangzhou"
}
variable "name" {
default = "terraform-example"
}
resource "alicloud_eip_segment_address" "default" {
eip_mask = "28"
bandwidth = "5"
isp = "BGP"
internet_charge_type = "PayByBandwidth"
netmode = "public"
}
The following arguments are supported:
bandwidth
- (Optional) The peak bandwidth of the EIP. Unit: Mbps. When the value of instancargetype is PostPaid and the value of InternetChargeType is PayByBandwidth, the range of Bandwidth is 1 to 500. If the value of instancargetype is PostPaid and the value of InternetChargeType is PayByTraffic, the range of Bandwidth is 1 to 200. When instancargetype is set to PrePaid, the range of Bandwidth is 1 to 1000. The default value is 5 Mbps.eip_mask
- (Required) Mask of consecutive EIPs. Value:28: For a single call, the system will allocate 16 consecutive EIPs.27: For a single call, the system will allocate 32 consecutive EIPs.26: For a single call, the system will allocate 64 consecutive EIPs.25: For a single call, the system will allocate 128 consecutive EIPs.24: For a single call, the system will allocate 256 consecutive EIPs.internet_charge_type
- (Optional) Continuous EIP billing method, valid values:
isp
- (Optional) Line type. Valid values:
BGP_FinanceCloud
.netmode
- (Optional) The network type. Set the value to public.The following attributes are exported:
id
- The ID of the resource supplied above.create_time
- The time when the contiguous Elastic IP address group was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.status
- The status of the resource.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Segment Address.delete
- (Defaults to 5 mins) Used when delete the Segment Address.EIP Segment Address can be imported using the id, e.g.
$ terraform import alicloud_eip_segment_address.example <id>