alicloud_data_works_project
更新时间:
Provides a Data Works Project resource.
For information about Data Works Project and how to use it, see What is Project.
-> NOTE: Available since v1.229.0.
Example Usage
Basic Usage
variable "name" {
default = "tf_example"
}
resource "random_integer" "default" {
min = 10000
max = 99999
}
provider "alicloud" {
region = "cn-hangzhou"
}
resource "alicloud_data_works_project" "default" {
project_name = "${var.name}_${random_integer.default.result}"
project_mode = "2"
description = "${var.name}_${random_integer.default.result}"
display_name = "${var.name}_${random_integer.default.result}"
status = "0"
}
Argument Reference
The following arguments are supported:
description
- (Required) Description of the workspacedisplay_name
- (Required) The display name of the workspace.project_mode
- (Optional, ForceNew) The mode of the workspace, with the following values:- 2, indicates the simple workspace mode.
- 3, indicating the standard workspace mode.
project_name
- (Required, ForceNew) Immutable Name of the workspace.status
- (Optional, Computed) The status of the resource
Attributes Reference
The following attributes are exported:
id
- The ID of the resource supplied above.create_time
- The creation time of the resource
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Project.delete
- (Defaults to 5 mins) Used when delete the Project.update
- (Defaults to 5 mins) Used when update the Project.
Import
Data Works Project can be imported using the id, e.g.
$ terraform import alicloud_data_works_project.example <id>
文档内容是否对您有帮助?