forked from fpluis/flipance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
171 lines (145 loc) · 5.7 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
variable "AWS_REGION" {
type = string
description = "AWS region where the infrastructure will be deployed"
default = "us-east-1"
}
variable "EC2_INSTANCE_TYPE" {
type = string
description = "The instance type for the server that will host the bot. You can find the pricing details here https://aws.amazon.com/ec2/pricing/on-demand/"
default = "t3.micro"
}
variable "ETHERSCAN_API_KEY" {
type = string
description = "Etherscan API key needed to fetch Ethereum events from the blockchain"
sensitive = true
}
variable "INFURA_PROJECT_ID" {
type = string
description = "Infura project id. You can find it at https://infura.io/dashboard > click on your project > click on project settings (top left)"
sensitive = true
default = ""
}
variable "POCKET_PROJECT_ID" {
type = string
description = "Pocket project id. You can find it at https://mainnet.portal.pokt.network/#/home > click on Apps (on the left) > click on your project > Portal ID (on the right)"
sensitive = true
default = ""
}
variable "POCKET_SECRET_KEY" {
type = string
description = "Pocket project secret key. You can find it at https://mainnet.portal.pokt.network/#/home > click on Apps (on the left) > click on your project > Secret Key (on the right)"
sensitive = true
default = ""
}
variable "ALCHEMY_API_KEY" {
type = string
description = "Alchemy API Key. You can see it by logging in to https://dashboard.alchemyapi.io/ > click on 'View Key' under your App > API KEY"
sensitive = true
}
variable "DISCORD_CLIENT_ID" {
type = string
description = "Discord application ID. You can find it under https://discord.com/developers/applications > click on your application > APPLICATION ID"
sensitive = true
}
variable "DISCORD_BOT_TOKEN" {
type = string
description = "Discord Bot token. You can find it under https://discord.com/developers/applications > click on your application > Bot (on the left) > Token. If you don't have one yet, you'll have to click on 'Reset Token' to get one."
sensitive = true
}
variable "DISCORD_CLIENT_ID_TEST" {
type = string
description = "Discord application ID used to test the bot (Optional)"
sensitive = true
default = ""
}
variable "DISCORD_BOT_TOKEN_TEST" {
type = string
description = "Discord Bot token used to test the bot (Optional)"
sensitive = true
default = ""
}
variable "MORALIS_SERVER_URL" {
type = string
description = "URL of the Moralis server you create for this application. You can see your servers and create a new one at https://admin.moralis.io/servers. Click on 'View Details' to launch a modal with the Server URL"
default = ""
}
variable "MORALIS_APP_ID" {
type = string
description = "URL of the Moralis server you create for this application. You can see your servers and create a new one at https://admin.moralis.io/servers. Click on 'View Details' to launch a modal with the Application ID"
sensitive = true
default = ""
}
variable "MORALIS_MASTER_KEY" {
type = string
description = "URL of the Moralis server you create for this application. You can see your servers and create a new one at https://admin.moralis.io/servers. Click on 'View Details' to launch a modal with the Master Key"
sensitive = true
default = ""
}
variable "NFT_SCAN_API_ID" {
type = string
description = "NFTScan API ID you can find at https://developer.nftscan.com/assist."
sensitive = true
default = ""
}
variable "NFT_SCAN_SECRET" {
type = string
description = "NFTScan SECRET you can find at https://developer.nftscan.com/assist."
sensitive = true
default = ""
}
variable "GITHUB_TOKEN" {
type = string
description = "Temporary Github access token used to pull the repository if it is private"
sensitive = true
default = ""
}
variable "GITHUB_REPO_IDENTIFIER" {
type = string
description = "The Github username and repo name for the bot. Example: 'fpluis/flipance' is the identifier for the original repo."
default = "fpluis/flipance"
}
variable "DB_HOSTNAME" {
type = string
description = "Http host for the PostgreSQL database."
default = "localhost"
}
variable "DB_PORT" {
type = string
description = "Port for the PostgreSQL database."
default = "5432"
}
variable "DB_USERNAME" {
type = string
description = "Username for the PostgreSQL database."
default = "user"
}
variable "DB_PASSWORD" {
type = string
description = "Password for the PostgreSQL database."
sensitive = true
}
variable "DB_NAME" {
type = string
description = "PostgreSQL database name."
default = "flipance"
}
variable "MAX_NICKNAME_LENGTH" {
type = string
description = "Max. length in characters that alert nicknames can have."
default = 50
}
variable "MAX_OFFER_FLOOR_DIFFERENCE" {
type = string
description = "Default max. difference as a percentage between the floor and the offer for all alerts. Example: if you set this variable at 15, alerts by default will only notify if an offer is 85% or more of the current floor for the collection."
default = 15
}
variable "DEFAULT_USER_ALARM_LIMIT" {
type = string
description = "Default max number of alerts a user can have. Each user in the database has a personal limit, so it can be changed for a specific user by querying the database."
default = 3
}
variable "DEFAULT_SERVER_ALARM_LIMIT" {
type = string
description = "Default max number of alerts a server can have. Each server in the database has its own limit, and it can be changed for a specific server by querying the database."
default = 1
}