-
-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathvariables.tf
137 lines (121 loc) · 3.47 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
#------------------------------------------------------------------------------
# written by: Lawrence McDaniel
# https://lawrencemcdaniel.com/
#
# date: sep-2023
#
# usage: all Terraform variable declarations
#------------------------------------------------------------------------------
variable "shared_resource_identifier" {
description = "A common identifier/prefix for resources created for this demo"
type = string
default = "openai"
}
variable "aws_account_id" {
description = "12-digit AWS account number"
type = string
}
variable "aws_region" {
description = "A valid AWS data center region code"
type = string
default = "us-east-1"
}
variable "aws_profile" {
description = "a valid AWS CLI profile located in $HOME/.aws/credentials"
type = string
default = "default"
}
variable "debug_mode" {
type = bool
default = false
}
variable "tags" {
description = "A map of tags to add to all resources. Tags added to launch configuration or templates override these values."
type = map(string)
default = {}
}
###############################################################################
# OpenAI API parameters
###############################################################################
variable "openai_endpoint_image_n" {
description = "FIX NOTE: what is this?"
type = number
default = 4
}
variable "openai_endpoint_image_size" {
description = "Image output dimensions in pixels"
type = string
default = "1024x768"
}
###############################################################################
# API Gateway
###############################################################################
variable "create_custom_domain" {
description = "a valid Internet domain name which you directly control using AWS Route53 in this account"
type = bool
default = false
}
variable "root_domain" {
description = "a valid Internet domain name which you directly control using AWS Route53 in this account"
type = string
default = ""
}
variable "stage" {
description = "Examples: dev, staging, prod, v0, v1, etc."
type = string
default = "v1"
}
variable "logging_level" {
type = string
default = "INFO"
}
variable "throttle_settings_burst_limit" {
type = number
default = 5
}
variable "throttle_settings_rate_limit" {
type = number
default = 10
}
###############################################################################
# Lambda
###############################################################################
variable "log_retention_days" {
type = number
default = 3
}
variable "quota_settings_limit" {
type = number
default = 20
}
variable "quota_settings_offset" {
type = number
default = 2
}
variable "quota_settings_period" {
type = string
default = "WEEK"
}
variable "lambda_python_runtime" {
type = string
default = "python3.11"
}
variable "lambda_nodejs_runtime" {
type = string
default = "nodejs18.x"
}
variable "lambda_memory_size" {
description = "Lambda function memory allocations in Mb"
type = number
default = 256
}
variable "lambda_timeout" {
description = "Lambda function timeout in seconds"
type = number
default = 60
}
variable "compatible_architectures" {
type = list(string)
description = "A list of architectures (x86_64 or arm64) that the Lambda function is compatible with."
default = ["x86_64"]
}