alicloud_ens_eip
更新时间:
Provides a ENS Eip resource.
Edge elastic public network IP. When you use it for the first time, please contact the product classmates to add a resource whitelist.
For information about ENS Eip and how to use it, see What is Eip.
-> NOTE: Available since v1.213.0.
Example Usage
Basic Usage
variable "name" {
default = "terraform-example"
}
resource "alicloud_ens_eip" "default" {
description = "EipDescription_autotest"
bandwidth = "5"
isp = "cmcc"
payment_type = "PayAsYouGo"
ens_region_id = "cn-chenzhou-telecom_unicom_cmcc"
eip_name = var.name
internet_charge_type = "95BandwidthByMonth"
}
Argument Reference
The following arguments are supported:
bandwidth
- (Optional, Computed) The maximum bandwidth of the EIP. Default value:5
. Valid values:5
to10000
. Unit: Mbit/s.description
- (Optional) The description of the EIP.eip_name
- (Optional) The name of the EIP.ens_region_id
- (Required, ForceNew) Ens node ID.internet_charge_type
- (Required, ForceNew) The metering method of the EIP. Valid value:95BandwidthByMonth
.isp
- (Optional, ForceNew) The Internet service provider. Valid value:cmcc
,unicom
,telecom
.payment_type
- (Required, ForceNew) The billing method of the EIP. Valid value:PayAsYouGo
.
Attributes Reference
The following attributes are exported:
id
- The ID of the resource supplied above.create_time
- The creation time of the EIP instance.status
- The status of the EIP.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Eip.delete
- (Defaults to 5 mins) Used when delete the Eip.update
- (Defaults to 5 mins) Used when update the Eip.
Import
ENS Eip can be imported using the id, e.g.
$ terraform import alicloud_ens_eip.example <id>
该文章对您有帮助吗?