Apply autoscaling configuration to lambda provisioned concurrency with Terrraform

Viewed 733
1 Answers

The feature to control the auto-scaling of lambdas was added Dez.2019 (see this blog). As long as this is not available through Terraform you have a couple of options to work around this

  1. Use a terraform provisioner to set up the provisioning rules through the aws-cli. Instructions which commands to run can be found in the AWS-Docs.
  2. Invoke the lambda yourself from time to time to keep it warm, see e.g. this post or this stackoverflow question
  3. Use a different service that provides more control, like ECS
Related