terraform-aws-gitlab-runner icon indicating copy to clipboard operation
terraform-aws-gitlab-runner copied to clipboard

Refactor the "terminate agent" AWS lambda

Open kayman-mk opened this issue 2 years ago • 2 comments
trafficstars

Describe the solution you'd like

During implementation of #628 some questions arose regarding this lambda function:

  • can we update to Python 3.9?
  • can we move to ARM to save costs?
  • the best setting for the memory size?
  • add a logging library (JSON output format)

Analyze these points and create a PR for it.

kayman-mk avatar Jan 06 '23 07:01 kayman-mk

Memory vs runtime:

128 MB --> < 20s

Startup time less than 1 second.

Checked several executions in my live account.

kayman-mk avatar Jan 09 '23 11:01 kayman-mk

python-json-logger seems to be a good library for logging (on top of logging)

kayman-mk avatar Feb 18 '23 08:02 kayman-mk