Provides a EIP Address resource. -> NOTE: BGP (Multi-ISP) lines are supported in all regions. BGP (Multi-ISP) Pro lines are supported only in the China (Hong Kong) region.
For information about EIP Address and how to use it, see What is Address.
Basic Usage
variable "name" {
default = "terraform-example"
}
resource "alicloud_eip_address" "default" {
description = var.name
isp = "BGP"
address_name = var.name
netmode = "public"
bandwidth = "1"
security_protection_types = ["AntiDDoS_Enhanced"]
payment_type = "PayAsYouGo"
}
alicloud_eip_address
or removing it from your configurationThe alicloud_eip_address
resource allows you to manage payment_type = "Subscription"
instance, but Terraform cannot destroy it.
Deleting the subscription resource or removing it from your configuration will remove it from your state file and management, but will not destroy the Instance.
You can resume managing the subscription instance via the AlibabaCloud Console.
The following arguments are supported:
activity_id
- (Optional) Special activity ID. This parameter is not required.address_name
- (Optional) The name of the EIP instance. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://.auto_pay
- (Optional) Whether to pay automatically. Valid values: true
and false
. Default value: true
. When auto_pay
is true
, The order will be automatically paid. When auto_pay
is false
, The order needs to go to the order center to complete the payment. NOTE: When payment_type
is Subscription
, this parameter is valid.bandwidth
- (Optional, Computed) The maximum bandwidth of the EIP. Valid values: 1
to 200
. Unit: Mbit/s. Default value: 5
.deletion_protection
- (Optional, Computed, Available since v1.207.0) Whether the delete protection function is turned on.
description
- (Optional) The description of the EIP.high_definition_monitor_log_status
- (Optional, ForceNew, Computed) Whether the second-level monitoring is enabled for the EIP.
internet_charge_type
- (Optional, ForceNew, Computed) Renewal Payment type.
ip_address
- (Optional, ForceNew, Computed) The IP address of the EIP.isp
- (Optional, ForceNew, Computed) The line type. You can set this parameter only when you create a PayAsYouGo
EIP. Valid values:
BGP
: BGP (Multi-ISP) lines.Up to 89 high-quality BGP lines are available worldwide. Direct connections with multiple Internet Service Providers (ISPs), including Telecom, Unicom, Mobile, Railcom, Netcom, CERNET, China Broadcast Network, Dr. Peng, and Founder, can be established in all regions in mainland China.BGP_PRO
: BGP (Multi-ISP) Pro lines optimize data transmission to mainland China and improve connection quality for international services. Compared with BGP (Multi-ISP), when BGP (Multi-ISP) Pro provides services to clients in mainland China (excluding data centers), cross-border connections are established without using international ISP services. This reduces network latency.ChinaTelecom
: China Telecom.ChinaUnicom
: China Unicom.ChinaMobile
: China Mobile.ChinaTelecom_L2
: China Telecom L2.ChinaUnicom_L2
: China Unicom L2.ChinaMobile_L2
: China Mobile L2.BGP_FinanceCloud
: If your services are deployed in China East 1 Finance, this parameter is required and you must set the value to BGP_FinanceCloud
.BGP_International
: BGP_International.The following arguments will be discarded. Please use new fields as soon as possible:
name
- (Deprecated since v1.126.0). Field 'name' has been deprecated from provider version 1.126.0. New field 'address_name' instead.instance_charge_type
- (Deprecated since v1.126.0). Field 'instance_charge_type' has been deprecated from provider version 1.126.0. New field 'payment_type' instead.The following attributes are exported:
id
- The ID of the resource supplied above.create_time
- The time when the EIP was created.status
- The status of the EIP.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 9 mins) Used when create the Address.delete
- (Defaults to 9 mins) Used when delete the Address.update
- (Defaults to 9 mins) Used when update the Address.EIP Address can be imported using the id, e.g.
$ terraform import alicloud_eip_address.example <id>