oci_generative_ai_hosted_deployment

This resource provides the Hosted Deployment resource in Oracle Cloud Infrastructure Generative AI service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/generative-ai/latest/HostedDeployment

Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/generative_ai

Creates a hosted deployment.

Example Usage

resource "oci_generative_ai_hosted_deployment" "test_hosted_deployment" {
	#Required
	active_artifact {

		#Optional
		artifact_type = var.hosted_deployment_active_artifact_artifact_type
		container_uri = var.hosted_deployment_active_artifact_container_uri
		hosted_deployment_id = oci_generative_ai_hosted_deployment.test_hosted_deployment.id
		id = var.hosted_deployment_active_artifact_id
		status = var.hosted_deployment_active_artifact_status
		tag = var.hosted_deployment_active_artifact_tag
		time_created = var.hosted_deployment_active_artifact_time_created
	}
	hosted_application_id = oci_generative_ai_hosted_application.test_hosted_application.id

	#Optional
	compartment_id = var.compartment_id
	defined_tags = {"Operations.CostCenter"= "42"}
	display_name = var.hosted_deployment_display_name
	freeform_tags = {"Department"= "Finance"}
}

Argument Reference

The following arguments are supported:

** 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:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Hosted Deployment * update - (Defaults to 20 minutes), when updating the Hosted Deployment * delete - (Defaults to 20 minutes), when destroying the Hosted Deployment

Import

HostedDeployments can be imported using the id, e.g.

$ terraform import oci_generative_ai_hosted_deployment.test_hosted_deployment "id"