alicloud_oos_application
更新時間:
Provides a OOS Application resource.
For information about OOS Application and how to use it, see What is Application.
-> NOTE: Available since v1.145.0.
Example Usage
Basic Usage
provider "alicloud" {
region = "cn-hangzhou"
}
variable "name" {
default = "terraform-example"
}
resource "random_integer" "default" {
min = 10000
max = 99999
}
data "alicloud_resource_manager_resource_groups" "default" {}
resource "alicloud_oos_application" "default" {
resource_group_id = data.alicloud_resource_manager_resource_groups.default.groups.0.id
application_name = "${var.name}-${random_integer.default.result}"
description = var.name
tags = {
Created = "TF"
}
}
Argument Reference
The following arguments are supported:
application_name
- (Required) The name of the application.description
- (Optional) Application group description information.resource_group_id
- (Optional, ForceNew) The ID of the resource group.tags
- (Optional) The tag of the resource.
Attributes Reference
The following attributes are exported:
id
- The resource ID in terraform of Application. The value is formate as <application_name>.
Import
OOS Application can be imported using the id, e.g.
$ terraform import alicloud_oos_application.example <id>
文檔內(nèi)容是否對您有幫助?