Provides a Global Accelerator (GA) Basic Ip Set resource.
For information about Global Accelerator (GA) Basic Ip Set and how to use it, see What is Basic Ip Set.
Basic Usage
provider "alicloud" {
region = var.region
}
variable "region" {
default = "cn-hangzhou"
}
resource "alicloud_ga_basic_accelerator" "default" {
duration = 1
pricing_cycle = "Month"
bandwidth_billing_type = "CDT"
auto_pay = true
auto_use_coupon = "true"
auto_renew = false
auto_renew_duration = 1
}
resource "alicloud_ga_basic_ip_set" "default" {
accelerator_id = alicloud_ga_basic_accelerator.default.id
accelerate_region_id = var.region
isp_type = "BGP"
bandwidth = "5"
}
The following arguments are supported:
accelerator_id
- (Required, ForceNew) The ID of the basic GA instance.accelerate_region_id
- (Required, ForceNew) The ID of the acceleration region.isp_type
- (Optional, ForceNew) The line type of the elastic IP address (EIP) in the acceleration region. Default value: BGP
. Valid values: BGP
, BGP_PRO
, ChinaTelecom
, ChinaUnicom
, ChinaMobile
, ChinaTelecom_L2
, ChinaUnicom_L2
, ChinaMobile_L2
.bandwidth
- (Optional) The bandwidth of the acceleration region. Unit: Mbit/s.The following attributes are exported:
id
- The resource ID in terraform of Basic Ip Set.status
- The status of the Basic Ip Set instance.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 3 mins) Used when create the Basic Ip Set.update
- (Defaults to 3 mins) Used when update the Basic Ip Set.delete
- (Defaults to 3 mins) Used when delete the Basic Ip Set.Global Accelerator (GA) Basic Ip Set can be imported using the id, e.g.
$ terraform import alicloud_ga_basic_ip_set.example <id>