Commit bdda79d
committed
feat(scale-down): use SSM to store scale-down config
Now we're potentially running multiple configurations in one scale-down
invocation, if we continue to use the environment we could start to hit
size limits: on Lambda, environment variables are limited to 4K.
Adopt the approach we use elsewhere and switch to SSM parameter store
for config. Here we add all the necessary IAM permissions, arrange to
store the config in the store and then read it back in `scale-down`.
A more strict parser is also introduced, ensuring that we detect more
invalid configurations and reject them with clear error messages.1 parent a83ece8 commit bdda79d
24 files changed
Lines changed: 956 additions & 110 deletions
File tree
- lambdas
- functions/control-plane/src
- scale-runners
- libs/aws-ssm-util/src
- modules
- multi-runner
- runners
- scale-down
- policies
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
217 | 218 | | |
218 | 219 | | |
219 | 220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments