Provides a Ga Domain resource.
For information about Ga Domain and how to use it, see What is Domain.
Basic Usage
resource "alicloud_ga_accelerator" "default" {
duration = 1
auto_use_coupon = true
spec = "1"
}
resource "alicloud_ga_domain" "default" {
domain = "changes.com.cn"
accelerator_id = alicloud_ga_accelerator.default.id
}
The following arguments are supported:
accelerator_id
- (Required, ForceNew) The ID of the global acceleration instance.domain
- (Required, ForceNew) The accelerated domain name to be added. only top-level domain names are supported, such as 'example.com'.The following attributes are exported:
id
- The key
of the resource supplied above. The value is formulated as <accelerator_id>:<domain>
.status
- The status of the resourceThe timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Domain.delete
- (Defaults to 5 mins) Used when delete the Domain.Ga Domain can be imported using the id, e.g.
$ terraform import alicloud_ga_domain.example <accelerator_id>:<domain>