-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpower-toggle-config.yaml
110 lines (85 loc) · 3.21 KB
/
power-toggle-config.yaml
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
# http server settings -------------------------------------------------------------------------------------------------
server:
# location of static files directory
# used to serve static files such as css, js, exc.
static_files_dir: ./frontend/dist
# local interface to bind to
bind_address: 0.0.0.0
# port to listen on
bind_port: 8080
# enable access log on stdout
access_log: false
# enable supported compression of http responses when client requests for it
# currently only gzip is supported
compression: true
# TLS options
tls:
# enables TLS
enabled: false
# path to pem encoded x509 certificate chain
# should include the following x509 certs: server > intermediate CA 1 > ... > intermediate CA X
cert_chain: /path/to/server-cert-chain.pem
# path to pem encoded pkcs1/8 private key
private_key: /path/to/server-key.pem
# aws settings ---------------------------------------------------------------------------------------------------------
aws:
# TODO: add api keys to config
# for now use env vars:
# AWS_ACCESS_KEY_ID
# AWS_SECRET_ACCESS_KEY
# the internal in minutes which we poll aws api
polling_interval: 5
# which regions to use
regions:
- ca-central-1
- us-east-1
# ONLY instances with this tag will be considered
# tag key is case sensitive
required_tag_key: power-toggle-enabled
# the value for the required tag
# tag value is case sensitive
required_tag_value: true
# the tag that is used to determine environment name
# NOTE that instances are grouped by the value of this tag
# If this tag is missing, the instance will NOT be considered
# tag key is case sensitive
environment_tag_key: Environment
# !! SAFETY option !!
# prevents shutting down of too many instances
max_instances_to_shutdown: 100
# optional list of instance types to ignore
ignore_instance_types:
- c5d.large
- c5d.xlarge
- c5d.2xlarge
- c5d.4xlarge
- c5d.9xlarge
- c5d.18xlarge
# !! SAFETY option !!
# optional list of environment names to ignore
ignore_environments:
- prod
# enable support for interacting with ASGs
enable_asg_support: false
# mock settings --------------------------------------------------------------------------------------------------------
mock:
# when mock is enabled, calls to aws are disabled. Instead, calls that would normally go to aws are mocked
# FOR DEVELOPMENT PURPOSES ONLY
enabled: false
# when set to true, a delay of 100-2100ms are added for each mocked call
delay: true
# when set to true, there is a 1/4 chance that a mocked call will produce an error
# use for testing how web UI handles errors
errors: true
# slack settings -------------------------------------------------------------------------------------------------------
slack:
# enables aws-power-toggle to send event messages to slack channels
enabled: false
# a list of Incoming Webhook URLs
webhook_urls:
- https://hooks.slack.com/services/SOME/WEBHOOK/URL
# misc settings --------------------------------------------------------------------------------------------------------
log_level: DEBUG
# experimental features, currently include billing stats
experimental:
enabled: false