Terraform Module for creating Global Accelerator resources on Alibaba Cloud.
English | 简体中文
This module is used to create a Global Accelerator under Alibaba Cloud.
These types of resources are supported:
- alicloud_ga_accelerator
- alicloud_ga_bandwidth_package
- alicloud_ga_bandwidth_package_attachment
- alicloud_ga_endpoint_group
- alicloud_ga_listener
module "example" {
source = "terraform-alicloud-modules/global-accelerator/alicloud"
#alicloud_ga_accelerator
create_accelerator = true
accelerator_name = "tf-test"
pricing_cycle = "Month"
accelerator_spec = "1"
#alicloud_ga_bandwidth_package
create_bandwidth_package = true
bandwidth_package_name = "tf-test"
bandwidth = 20
bandwidth_package_type = "Basic"
payment_type = "Subscription"
billing_type = "PayByTraffic"
ratio = 40
create_bandwidth_package_attachment = true
#alicloud_ga_listener
create_listener = true
listener_name = "tf-test"
port_ranges = {
from_port = 60
to_port = 70
}
#alicloud_ga_endpoint_group
create_endpoint_group = true
endpoint_group_name = "tf-test"
endpoint_group_region = "cn-hangzhou"
endpoint_configurations = {
weight = "20"
type = "PublicIp"
endpoint = "114.23.00.xx"
}
}
- This module using AccessKey and SecretKey are from
profile
andshared_credentials_file
. If you have not set them yet, please install aliyun-cli and configure it.
Name | Version |
---|---|
terraform | > = 0.13.0 |
alicloud | > = 1.150.0 |
Name | Version |
---|---|
alicloud | > = 1.150.0 |
If you have any problems when using this module, please opening a provider issue and let us know.
Note: There does not recommend opening an issue on this repo.
Created and maintained by Alibaba Cloud Terraform Team(terraform@alibabacloud.com).
MIT Licensed. See LICENSE for full details.