Provides a Global Accelerator (GA) Ip Set resource.
For information about Global Accelerator (GA) Ip Set and how to use it, see What is Ip Set.
Basic Usage
variable "region" {
default = "cn-hangzhou"
}
provider "alicloud" {
region = var.region
profile = "default"
}
resource "alicloud_ga_accelerator" "default" {
duration = 1
auto_use_coupon = true
spec = "1"
}
resource "alicloud_ga_bandwidth_package" "default" {
bandwidth = 100
type = "Basic"
bandwidth_type = "Basic"
payment_type = "PayAsYouGo"
billing_type = "PayBy95"
ratio = 30
}
resource "alicloud_ga_bandwidth_package_attachment" "default" {
accelerator_id = alicloud_ga_accelerator.default.id
bandwidth_package_id = alicloud_ga_bandwidth_package.default.id
}
resource "alicloud_ga_ip_set" "example" {
accelerate_region_id = var.region
bandwidth = "5"
accelerator_id = alicloud_ga_bandwidth_package_attachment.default.accelerator_id
}
The following arguments are supported:
accelerator_id
- (Required, ForceNew) The ID of the Global Accelerator (GA) instance.accelerate_region_id
- (Required, ForceNew) The ID of an acceleration region.bandwidth
- (Optional, Int) The bandwidth allocated to the acceleration region.
The following attributes are exported:
id
- The resource ID in terraform of Ip Set.ip_address_list
- The list of accelerated IP addresses in the acceleration region.status
- The status of the acceleration region.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 15 mins) Used when create the Ip Set.update
- (Defaults to 2 mins) Used when update the Ip Set.delete
- (Defaults to 10 mins) Used when delete the Ip Set.Ga Ip Set can be imported using the id, e.g.
$ terraform import alicloud_ga_ip_set.example <id>