oci_datascience_model_provenance
This resource provides the Model Provenance resource in Oracle Cloud Infrastructure Data Science service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/data-science/latest/ModelProvenance
Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/datascience
Creates provenance information for the specified model.
Example Usage
resource "oci_datascience_model_provenance" "test_model_provenance" {
#Required
model_id = oci_datascience_model.test_model.id
#Optional
git_branch = var.model_provenance_git_branch
git_commit = var.model_provenance_git_commit
repository_url = var.model_provenance_repository_url
script_dir = var.model_provenance_script_dir
training_id = oci_datascience_training.test_training.id
training_script = var.model_provenance_training_script
}
Argument Reference
The following arguments are supported:
git_branch- (Optional) (Updatable) For model reproducibility purposes. Branch of the git repository associated with model training.git_commit- (Optional) (Updatable) For model reproducibility purposes. Commit ID of the git repository associated with model training.model_id- (Required) The OCID of the model.repository_url- (Optional) (Updatable) For model reproducibility purposes. URL of the git repository associated with model training.script_dir- (Optional) (Updatable) For model reproducibility purposes. Path to model artifacts.training_id- (Optional) (Updatable) The OCID of a training session(Job or NotebookSession) in which the model was trained. It is used for model reproducibility purposes.training_script- (Optional) (Updatable) For model reproducibility purposes. Path to the python script or notebook in which the model was trained.”
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Attributes Reference
The following attributes are exported:
git_branch- For model reproducibility purposes. Branch of the git repository associated with model training.git_commit- For model reproducibility purposes. Commit ID of the git repository associated with model training.repository_url- For model reproducibility purposes. URL of the git repository associated with model training.script_dir- For model reproducibility purposes. Path to model artifacts.training_id- The OCID of a training session(Job or NotebookSession) in which the model was trained. It is used for model reproducibility purposes.training_script- For model reproducibility purposes. Path to the python script or notebook in which the model was trained.”
Timeouts
The timeouts block allows you to specify timeouts for certain operations:
* create - (Defaults to 20 minutes), when creating the Model Provenance
* update - (Defaults to 20 minutes), when updating the Model Provenance
* delete - (Defaults to 20 minutes), when destroying the Model Provenance
Import
ModelProvenances can be imported using the id, e.g.
$ terraform import oci_datascience_model_provenance.test_model_provenance "models/{modelId}/provenance"