-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpinecone.tf
70 lines (60 loc) · 1.38 KB
/
pinecone.tf
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
terraform {
required_providers {
pinecone = {
source = "skyscrapr/pinecone"
version = "0.2.1"
}
}
}
variable "index_name" {
type = string
description = "The name of the index"
default = 2
}
variable "index_dimension" {
type = number
description = "The dimension of the index. It must be at least 512"
default = 512
}
variable "index_metric" {
type = string
description = "The metric of the index"
default = "cosine"
}
variable "pods" {
type = number
description = "The number of pods for the index to use, including replicas"
default = 2
}
variable "pod_type" {
type = string
description = "The pod type for the project"
default = "starter"
}
variable "replicas" {
type = number
description = "The number of replicas"
default = 2
}
variable "api_key" {
type = string
description = "The API KEY value"
default = ""
}
variable "environment" {
type = string
description = "The account environment paired with API KEY. Check your account"
default = ""
}
provider "pinecone" {
environment = var.environment
api_key = var.api_key
}
resource "pinecone_index" "new_index" {
name = var.index_name
dimension = var.index_dimension
metric = var.index_metric
pod_type = var.pod_type
replicas = var.replicas
pods = var.pods
}