-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.example.yaml
102 lines (89 loc) · 2.15 KB
/
config.example.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
# Config variables for the Reka application. These variables can also be set from environment with
# the reka namespace
# Example:
# name => REKA_NAME
# refreshInterval => REKA_REFRESHINTERVAL
# auth.username => REKA_AUTH_USERNAME
name: reka
# Providers to be enabled for reka
providers:
- aws
- gcp
# logPath: /path/to/logs/dir/
# Time to refresh resources in hours
refreshInterval: 4
# web
# auth:
# username: blank # Can
# password: blank
# If not set defaults to $(pwd)/reka-state.json
StateBackend:
type: local
path: /path/to/local/store/state
#StateBackend:
# type: s3
# bucket: bucket_name
# path: path/to/local/store
aws:
# # Env: AWS_SECRET_ACCESS_KEY
# secretAccessKey: blank
# # ENV: AWS_ACCESS_KEY_ID
# accessKeyID: blank
# # ENV: AWS_REGION
# defaultRegion: us-east-2
gcp:
# projectId: Something
exclude:
- name: Exclude resources with prod tags in us-east-2
region: "us-east-2"
tags:
env: prod
- name: Exclude EC2 Instances
region: "us-east-2"
resources:
- aws.ec2
# Rules for stopping, resuming and terminating instances
rules:
- name: Pause all staging instances on a weekend (staging)
# Target specific resource types
target:
- aws.ec2
- aws.ebs
tags:
env: staging
condition:
activeDuration:
startTime: "8:00"
stopTime: "18:00"
startDay: Monday
stopDay: Friday
region: "us-east-2"
# - name: Delete all tests instances older than 24hrs (test)
# tags:
# env: test
# ci: true
# condition:
# terminationPolicy: older than 24hrs
- name: Nuke all project A instances after Demo october 9th (staging)
tags:
env: staging
project: A
condition:
terminationDate: "2020-11-05 11:00"
- name: Delete all unused instances older than 48hrs (staging)
tags:
env: staging
condition:
terminationPolicy: unused
timezone: Africa/Lagos
# timezone: UTC+1
# # Example remote state backends
#StateBackend:
# type: s3
# bucket: random
# path: tracks/reka-store.json
# region: us-east-2
#StateBackend:
# type: azblob
# bucket: random
# path: tracks/reka-store.json