-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvariables.tf
87 lines (74 loc) · 2.07 KB
/
variables.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
###### General variables ######
variable "solution_prefix" {
description = "Prefix to be included in all resources deployed by this solution"
type = string
default = "aws-ia"
}
variable "tags" {
description = "Map of tags to apply to resources deployed by this solution."
type = map(any)
default = null
}
variable "container_platform" {
description = "The platform for the container image, default is 'linux/amd64'"
default = "linux/amd64" # "linux/arm64
type = string
}
variable "force_destroy" {
description = "Set to true if you want to force delete resources created by this module"
type = bool
default = false
}
###### VPC variables ######
variable "vpc_props" {
description = "Properties for the VPC to be deployed. Error if both this and 'deploy_vpc' are provided"
type = any
default = {
cidr_block : "10.0.0.0/20"
az_count = 2
subnets = {
public = {
netmask = 24
nat_gateway_configuration = "all_azs"
}
private = {
netmask = 24
connect_to_public_natgw = true
}
}
vpc_flow_logs = {
log_destination_type = "cloud-watch-logs"
retention_in_days = 180
}
}
}
###### Open Search variables ######
variable "open_search_props" {
description = "Properties for the OpenSearch configuration"
type = any
default = {
open_search_service_type = "aoss"
domain_name = "opensearch"
engine_version = "OpenSearch_1.0"
index_name = "doc-rag-search"
secret = "NONE"
collection_name = "rag-collection"
standby_replicas = 2
ebs_options = {
ebs_enabled = true
volume_type = "gp3"
volume_size = 10
}
cluster_config = {
instance_count = 4
instance_type = "r6g.large.search"
dedicated_master_count = 4
dedicated_master_enabled = true
dedicated_master_type = "c6g.large.search"
zone_awareness_config = {
availability_zone_count = 2
}
zone_awareness_enabled = true
}
}
}