forked from aws-samples/service-screener-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
52 lines (44 loc) · 1.15 KB
/
constants.py
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
import pathlib
import sys
ROOT_DIR = str(pathlib.Path.cwd())
SERVICE_DIR = ROOT_DIR + '/services'
TEMPLATE_DIR = ROOT_DIR + '/templates'
# VENDOR_DIR = ROOT_DIR + '/vendor'
FRAMEWORK_DIR = ROOT_DIR + '/frameworks'
BOTOCORE_DIR = ROOT_DIR + '/../lib64/python'+ str(sys.version_info.major) + '.' + str(sys.version_info.minor) +'/site-packages/botocore'
HTML_FOLDER = '/adminlte/aws/res'
ADMINLTE_ROOT_DIR = ROOT_DIR + '/adminlte'
ADMINLTE_DIR = ADMINLTE_ROOT_DIR + '/aws'
HTMLRES_DIR = ROOT_DIR + '/' + HTML_FOLDER
FORK_DIR = ROOT_DIR + '/__fork'
API_JSON = FORK_DIR + '/api.json'
GENERAL_CONF_PATH = SERVICE_DIR + '/general.reporter.json'
CLI_TRUE_KEYWORD_ARRAY = ['yes', 'y', 'true', '1', 1]
SESSUID_FILENAME = 'sess-uuid'
EC2_TAGS_KEYWORDS = [
"elk",
"elasticsearch",
"kibana",
"mysql",
"postgres",
"mariadb",
"database",
"sql",
"db",
"oracle",
"rabbit",
"rabbitmq",
"activemq",
"kafka",
"spark",
"hadoop",
"mongo",
"mongodb",
"memcached",
"redis",
"kubernetes",
"k8s",
"docker",
"cassandra"
]
EC2_TAG_VALUE_FALSE_KEYWORDS = ['false', '0', '-1', 'no', 'none', 'negative']