alicloud_esa_version
更新时间:
Provides a ESA Site Version resource.
For information about ESA Site Version and how to use it, see What is Site Version.
-> NOTE: Available since v1.251.0.
Example Usage
Basic Usage
variable "name" {
default = "bcd72239.com"
}
data "alicloud_esa_sites" "default" {
plan_subscribe_type = "enterpriseplan"
}
resource "alicloud_esa_site" "default" {
site_name = var.name
instance_id = data.alicloud_esa_sites.default.sites.0.instance_id
coverage = "overseas"
access_type = "NS"
version_management = true
}
resource "alicloud_esa_version" "default" {
site_id = alicloud_esa_site.default.id
description = "example"
origin_version = "0"
}
Argument Reference
The following arguments are supported:
description
- (Optional) The Site version's description.site_id
- (Required, ForceNew, Int) The site ID, which can be obtained by calling the ListSites API.origin_version
- (Required, ForceNew, Int) The version number of the site configuration. For sites that have enabled configuration version management, this parameter can be used to specify the effective version of the configuration site, which defaults to version 0.
Attributes Reference
The following attributes are exported:
id
- The ID of the resource supplied above.The value is formulated as<site_id>:<site_version>
.site_version
- The version number of the site configuration.create_time
- The creation time. The date format follows ISO8601 notation and uses UTC time. The format is yyyy-MM-ddTHH:mm:ssZ.status
- Site version status::online
.:configuring
._faild:
configure_faild`.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Site Version.delete
- (Defaults to 5 mins) Used when delete the Site Version.update
- (Defaults to 5 mins) Used when update the Site Version.
Import
ESA Site Version can be imported using the id, e.g.
$ terraform import alicloud_esa_version.example <site_id>:<site_version>
该文章对您有帮助吗?