Provides a Eipanycast Anycast Eip Address resource. Anycast Elastic IP Address.
For information about Eipanycast Anycast Eip Address and how to use it, see What is Anycast Eip Address.
Basic Usage
variable "name" {
default = "tf-example"
}
resource "alicloud_eipanycast_anycast_eip_address" "default" {
anycast_eip_address_name = var.name
description = var.name
bandwidth = 200
service_location = "international"
internet_charge_type = "PayByTraffic"
payment_type = "PayAsYouGo"
}
The following arguments are supported:
anycast_eip_address_name
- (Optional) Anycast EIP instance name.bandwidth
- (Optional) The peak bandwidth of the Anycast EIP instance, in Mbps.description
- (Optional) Anycast EIP instance description.internet_charge_type
- (Optional, ForceNew) The billing method of Anycast EIP instance. "PayByBandwidth": refers to the method of billing based on traffic.payment_type
- (Optional, ForceNew) The payment model of Anycast EIP instance. "PayAsYouGo": Refers to the post-paid mode.resource_group_id
- (Optional, Available since v1.208.1) The ID of the resource group to which the instance belongs.service_location
- (Required, ForceNew) Anycast EIP instance access area. "international": Refers to areas outside of Mainland China.tags
- (Optional, Map, Available since v1.208.0) List of resource-bound tags.The following attributes are exported:
id
- The ID of the resource supplied above.create_time
- Anycast EIP instance creation time.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 Anycast Eip Address.delete
- (Defaults to 5 mins) Used when delete the Anycast Eip Address.update
- (Defaults to 5 mins) Used when update the Anycast Eip Address.Eipanycast Anycast Eip Address can be imported using the id, e.g.
$ terraform import alicloud_eipanycast_anycast_eip_address.example <id>