Skip to content

Latest commit

 

History

History
85 lines (69 loc) · 2.5 KB

File metadata and controls

85 lines (69 loc) · 2.5 KB
page_title spiceai_app Data Source - spiceai
subcategory
description Retrieves details about an existing Spice.ai app by its ID.

spiceai_app (Data Source)

Retrieves details about an existing Spice.ai app by its ID.

Example Usage

# Get details about an existing app by ID
data "spiceai_app" "example" {
  id = "12345"
}

# Use data from an existing app
output "app_name" {
  description = "The name of the app"
  value       = data.spiceai_app.example.name
}

output "app_visibility" {
  description = "The visibility of the app"
  value       = data.spiceai_app.example.visibility
}

output "app_region" {
  description = "The region where the app is deployed"
  value       = data.spiceai_app.example.region
}

output "app_replicas" {
  description = "The number of replicas configured for the app"
  value       = data.spiceai_app.example.replicas
}

output "app_image_tag" {
  description = "The runtime image tag for the app"
  value       = data.spiceai_app.example.image_tag
}

# Reference an app created by another resource
data "spiceai_app" "from_resource" {
  id = spiceai_app.example.id
}

# Use data source to get app API key for other configurations
output "app_api_key" {
  description = "The API key for the app"
  value       = data.spiceai_app.from_resource.api_key
  sensitive   = true
}

Schema

Required

  • id (String) The unique identifier of the app.

Read-Only

  • cluster_id (String) The Kubernetes cluster identifier where the app is deployed.
  • cname (String) The region identifier (cname) for the app.
  • created_at (String) The timestamp when the app was created.
  • description (String) A description of the app.
  • image (String) Image name for the spiced container.
  • image_tag (String) The Spice.ai runtime image tag.
  • name (String) The name of the app.
  • node_group (String) The node group for the app.
  • production_branch (String) The production branch for the app.
  • region (String) The region where the app is deployed.
  • registry (String) Registry for the spiced image.
  • replicas (Number) The number of replicas.
  • spicepod (String) The spicepod configuration as a JSON string.
  • storage_claim_size_gb (Number) The storage claim size in GB.
  • tags (Map of String) Key-value tags for the app.
  • update_channel (String) Update channel for the spicepod.
  • visibility (String) The visibility of the app (public or private).