Provides a Global Accelerator (GA) Accelerator resource.
For information about Global Accelerator (GA) Accelerator and how to use it, see What is Accelerator.
Basic Usage
resource "alicloud_ga_accelerator" "example" {
duration = 1
auto_use_coupon = true
spec = "1"
}
The following arguments are supported:
spec
- (Optional) The instance type of the GA instance. Specification of global acceleration instance. Valid values:
1
: Small 1.2
: Small 2.3
: Small 3.5
: Medium 1.8
: Medium 2.10
: Medium 3.bandwidth_billing_type
- (Optional, ForceNew, Available since v1.205.0) The bandwidth billing method. Default value: BandwidthPackage
. Valid values:
BandwidthPackage
: billed based on bandwidth plans.CDT
: billed based on data transfer.payment_type
- (Optional, ForceNew, Available since v1.208.1) The payment type. Default value: Subscription
. Valid values: PayAsYouGo
, Subscription
.cross_border_status
- (Optional, Bool, Available since v1.208.1) Indicates whether cross-border acceleration is enabled. Default value: false
. Valid values:
true
: Enable.false
: Disable.
NOTE: cross_border_status
is valid only when bandwidth_billing_type
is set to CDT
.cross_border_mode
- (Optional, Available since v1.208.1) The type of cross-border acceleration. Default value: bgpPro
. Valid values: bgpPro
, private
. NOTE: cross_border_mode
is valid only when cross_border_status
is set to true
.duration
- (Optional, Int) The subscription duration.
pricing_cycle
parameter is set to Month
, the valid values for the duration
parameter are 1 to 9.pricing_cycle
parameter is set to Year
, the valid values for the duration
parameter are 1 to 3.pricing_cycle
- (Optional, Available since v1.150.0) The billing cycle of the GA instance. Default value: Month
. Valid values:
Month
: billed on a monthly basis.Year
: billed on an annual basis.auto_use_coupon
- (Optional, Bool) Use coupons to pay bills automatically. Default value: false
. Valid values:
true
: Use.false
: Not used.renewal_status
- (Optional, Available since v1.146.0) Whether to renew an accelerator automatically or not. Default value: Normal
. Valid values:
AutoRenewal
: Enable auto renewal.Normal
: Disable auto renewal.NotRenewal
: No renewal any longer. After you specify this value, Alibaba Cloud stop sending notification of instance expiry, and only gives a brief reminder on the third day before the instance expiry.auto_renew_duration
- (Optional, Int, Available since v1.146.0) Auto renewal period of an instance, in the unit of month. The value range is 1-12.promotion_option_no
- (Optional, Available since v1.208.1) The code of the coupon. NOTE: The promotion_option_no
takes effect only for accounts registered on the international site (alibabacloud.com).accelerator_name
- (Optional) The Name of the GA instance.description
- (Optional) Descriptive information of the global acceleration instance.tags
- (Optional, Available since v1.207.1) A mapping of tags to assign to the resource.The following attributes are exported:
id
- The resource ID in terraform of Accelerator. Value as accelerator_id
.status
- The status of the GA instance.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 1 mins) Used when creating the Ga Accelerator.update
- (Defaults to 6 mins) Used when updating the Ga Accelerator.delete
- (Defaults to 3 mins) Used when deleting the Ga Accelerator.Ga Accelerator can be imported using the id, e.g.
$ terraform import alicloud_ga_accelerator.example <id>