alicloud_pai_workspace_experiment

更新时间:

Provides a PAI Workspace Experiment resource.

For information about PAI Workspace Experiment and how to use it, see What is Experiment.

-> NOTE: Available since v1.236.0.

Example Usage

Basic Usage


variable "name" {
  default = "terraform_example"
}

provider "alicloud" {
  region = "cn-hangzhou"
}

resource "alicloud_pai_workspace_workspace" "defaultDI9fsL" {
  description    = var.name
  display_name   = var.name
  workspace_name = var.name
  env_types      = ["prod"]
}


resource "alicloud_pai_workspace_experiment" "default" {
  accessibility   = "PRIVATE"
  artifact_uri    = "oss://yyt-409262.oss-cn-hangzhou.aliyuncs.com/example/"
  experiment_name = var.name
  workspace_id    = alicloud_pai_workspace_workspace.defaultDI9fsL.id
}

Argument Reference

The following arguments are supported:

  • accessibility - (Optional, Computed) Experimental Visibility
  • artifact_uri - (Required, ForceNew) ArtifactUri is default OSS storage path of the output of trials in the experiment
  • experiment_name - (Required) Name is the name of the experiment, unique in a namespace
  • workspace_id - (Required, ForceNew) WorkspaceId is the workspace id which contains the experiment

Attributes Reference

The following attributes are exported:

  • id - The ID of the resource supplied above.
  • create_time - GmtCreateTime is time when this entity is created.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 5 mins) Used when create the Experiment.
  • delete - (Defaults to 5 mins) Used when delete the Experiment.
  • update - (Defaults to 5 mins) Used when update the Experiment.

Import

PAI Workspace Experiment can be imported using the id, e.g.

$ terraform import alicloud_pai_workspace_experiment.example <id>