-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprovider.tf
More file actions
45 lines (39 loc) · 1.21 KB
/
provider.tf
File metadata and controls
45 lines (39 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Configure the Spice.ai provider
terraform {
required_providers {
spiceai = {
source = "spiceai/spiceai"
version = "~> 0.1"
}
}
}
# Provider configuration using variables
provider "spiceai" {
# OAuth client credentials for authentication
# These can also be set via environment variables:
# SPICEAI_CLIENT_ID
# SPICEAI_CLIENT_SECRET
client_id = var.spiceai_client_id
client_secret = var.spiceai_client_secret
# Optional: Custom API endpoint (defaults to https://api.spice.ai)
# api_endpoint = "https://api.spice.ai"
# Optional: Custom OAuth endpoint (defaults to https://spice.ai/api/oauth/token)
# oauth_endpoint = "https://spice.ai/api/oauth/token"
}
# Variables for credentials
variable "spiceai_client_id" {
description = "OAuth client ID for Spice.ai API authentication"
type = string
sensitive = true
}
variable "spiceai_client_secret" {
description = "OAuth client secret for Spice.ai API authentication"
type = string
sensitive = true
}
# Alternative: Provider configuration using environment variables only
# provider "spiceai" {
# # Credentials are automatically read from:
# # - SPICEAI_CLIENT_ID
# # - SPICEAI_CLIENT_SECRET
# }