The value of 'oci_objectstorage_bucket' instance
component.
Available ONLY after instance components are created during instance create,
update, or upgrade.
This implicit variable can be used by, for example, triggers that need to use,
for example, the Model Deployment OCID.
"my_bucket": # this is TF resource identifier for the bucket
{
"id": "ocid1.bucket.oc1.aaaa", #bucket OCID
"name": "test_bucket" #bucket name
}
app_instance.configuration
Map
The configuration values for the schema.
{
"key1": "value1"
}
current_model_id
Map
Current model ID for particular prediction use case.
The variable contains a map where:
use case name is the key (display name of your model deployment)
currently deployed model ID is the value.
Typically, the training pipeline builds a new model and deploys it. The terraform
definition needs to know about the new model and refer to the currently deployed
model. Otherwise, the currently deployed model would be overridden by the value
used in the Terraform definition of the Model Deployment.
{
"<your use case/MD name>": "ocid1.datasciencemodeldeployment...."
}
Model Reference in Model Deployment Terraform Definition
locals {
# this assumes that you defined a default model as an application component named "default_model"
default_model_id = var.app_impl.application_components.oci_datascience_model.default_model.id
}
model_id = var.current_model_id != null ? (contains(keys(var.current_model_id),"<use case>" ?
(var.current_model_id["<use case>"]!= null ? var.current_model_id["<use case>"]
:local.default_model_id) : local.default_model_id) :local.default_model_id
Note:
The expression is very defensive not to be affected by the Terraform version or
implementation used.
Component References 🔗
The application components and instance components are organized in a nested manner. This
hierarchical structure allows easy reference and management of different application
components and can then be used by instance components.