alicloud_esa_cache_reserve_instance
更新时间:
Provides a ESA Cache Reserve Instance resource.
For information about ESA Cache Reserve Instance and how to use it, see What is Cache Reserve Instance.
-> NOTE: Available since v1.247.0.
Example Usage
Basic Usage
variable "name" {
default = "terraform-example"
}
provider "alicloud" {
region = "cn-hangzhou"
}
resource "alicloud_esa_cache_reserve_instance" "default" {
quota_gb = "10240"
cr_region = "CN-beijing"
auto_renew = true
period = "1"
payment_type = "Subscription"
auto_pay = true
}
Argument Reference
The following arguments are supported:
auto_pay- (Optional) Automatic payment.auto_renew- (Optional) Whether to auto-renew:true: Auto-renew.false: Do not auto-renew.
cr_region- (Optional, ForceNew) Cache holding areaHK: Hong Kong, ChinaCN: Mainland China
payment_type- (Required, ForceNew) Specifies whether to enable auto payment.period- (Optional, ForceNew, Int) Purchase period (unit: month).quota_gb- (Optional, Int) Cache retention specification (unit: GB).
Attributes Reference
The following attributes are exported:
id- The ID of the resource supplied above.create_time- Instance purchase time.status- The status of the cache reserve instance. , it is unavailable.
Timeouts
The timeouts block allows you to specify timeouts for certain actions:
create- (Defaults to 5 mins) Used when create the Cache Reserve Instance.delete- (Defaults to 5 mins) Used when delete the Cache Reserve Instance.update- (Defaults to 5 mins) Used when update the Cache Reserve Instance.
Import
ESA Cache Reserve Instance can be imported using the id, e.g.
$ terraform import alicloud_esa_cache_reserve_instance.example <id>
该文章对您有帮助吗?