]> git.cworth.org Git - turbot/commit
Cache SSM parameter values into environment variables
authorCarl Worth <cworth@cworth.org>
Fri, 23 Oct 2020 12:54:27 +0000 (05:54 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 23 Oct 2020 13:26:19 +0000 (06:26 -0700)
commit3f55f48bd1a209854aef278b7e70e663cda4ee9a
tree469694e85a3b152977b2349c4323e0308ad00a44
parentb999fd0fecf4b209c39785bd9d2be6990ee1716e
Cache SSM parameter values into environment variables

The goal here is to reduce SSM parameter reads/writes. Hopefully, as
AWS reuses a container for multiple calls to our Lambda function,
these values can be read from the environment instead of needing to
reach out to AWS.

The reason we want to reduce calls to SSM functions in that AWS Free
Tier gives us only 20,000 KMS requests compared to 1,000,000 AWS
Lambda requests.
turbot_lambda/turbot_lambda.py