Commit e22fe6e
authored
runners: Add expiration policy to SSM parameters (#6885)
This adds an expiration policy to the SSM parameters for the runners.
This is to ensure that the parameters are deleted after 30 minutes.
Github Runner Tokens typically have a 1 hour expiration time, but our
runners are typically expected to be up way quicker than that so 30
minutes is a good balance for when we expect the runners to be up.
If a runner isn't conencted to Github by at least 30 minutes we will
more than likely have spun it down and it will be deleted.
This is an attempted re-land of 2 commits:
* #6855
* #6858
---------
Signed-off-by: Eli Uriegas <eliuriegas@meta.com>1 parent 6dd711f commit e22fe6e
2 files changed
Lines changed: 33 additions & 0 deletions
File tree
- terraform-aws-github-runner/modules/runners/lambdas/runners/src/scale-runners
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1263 | 1263 | | |
1264 | 1264 | | |
1265 | 1265 | | |
| 1266 | + | |
1266 | 1267 | | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
1267 | 1287 | | |
1268 | 1288 | | |
1269 | 1289 | | |
| |||
1307 | 1327 | | |
1308 | 1328 | | |
1309 | 1329 | | |
| 1330 | + | |
1310 | 1331 | | |
1311 | 1332 | | |
1312 | 1333 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
395 | 407 | | |
396 | 408 | | |
397 | 409 | | |
| |||
0 commit comments