Implicit Variables for ML Applications Packages
In the Terraform scripts inside the ML Applications packages, you can rely on implicit variables.
${var.<region_identifier>}
Implementation-Independent Variables
Name | Type or Schema | Description | Sample |
---|---|---|---|
region_short_code |
String |
The airport code for the region. | IAD, PHX |
region_identifier |
String |
The identifier of the current region of MlApps service. | us-ashburn-1 |
realm |
String |
The current realm of MlApps service. | OC1, OC2 |
|
|
||
app.id | String | The OCID of the ML Application. | |
app.name | String | The name of the ML Application. | |
app.compartment_id |
String | The compartment OCID of the ML Application. | |
|
|
|
|
app_impl.id |
String | The OCID of the ML Application Implementation. | |
app_impl.name |
String | The name of the ML Application Implementation. | |
app_impl.compartment_id |
String | The compartment OCID of the ML Application Implementation. | |
app_impl.package_arguments |
Map | The map of package arguments. | { "bucket_name":
"my_bucket" } |
app_impl.application_components.oci_datascience_job |
Map | The value of 'oci_datascience_job ' application
component. |
|
|
|
|
|
app_instance.id |
String | The OCID of the ML Application Instance. | |
app_instance.displayName |
String | DisplayName of the ML Application Instance. |
|
app_instance.compartment_id |
String | The compartment OCID of the ML Application Instance. | |
app_instance.instance_components.oci_objectstorage_bucket |
Map |
|
|
app_instance.configuration |
Map | The configuration values for the schema. |
|
current_model_id | Map |
Current model ID for particular prediction use case. The variable contains a map where:
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. |
Model Reference in Model Deployment Terraform Definition
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.
componentName :{ type: String, minLength: 1, maxLength: 255,}
"app_impl":
{
"application_components":
{
"oci_datascience_pipeline":
{
"test_pipeline":
{
"id" = "ocid1.oci_datascience_pipeline.oc1..aaaaaaaarvllavmi4anvsrpwe3eqyxx3vkzrnfmtzynunkbszrr7dnzfq3qa"
"name" = "PipelineTriggers"
}
}
}
}
${app_impl.application_components.oci_datascience_pipeline.test_pipeline.id}"