Re:Using the New AWS Secrets Manager for Serverless
by scarface74 on Tuesday January 08, 2019 @09:49PM
(#18861868)
I’ve been bitten by it doing something as simple as creating parameters using CloudFormation. The only way around it is judicious use of DependsOn to make them single threaded.
Re:Using the New AWS Secrets Manager for Serverless
by Cpoll on Wednesday January 09, 2019 @08:06PM
(#18870651)
Thanks for this, I was considering bringing params into CF, the main blocker being that it doesn't support secure params (which is obvious in retrospect, they wouldn't be secure in the template).
Re:Using the New AWS Secrets Manager for Serverless
by scarface74 on Wednesday January 09, 2019 @08:45PM
(#18870830)
For secure strings in cloud formation, I use a cloud formation parameter ( - meaning I have to enter the parameter manually and set NoEcho to true. And then set the CF parameter value to the SSM Parameter value.
This is with the help of a lambda backed custom resource
https://svdgraaf.nl/2018/04/13/CloudFormation-ssm-secure-str...
Obviously , this can’t be a part of your CI/CD Pipeline. I run the CloudFormation template manually in the console to enter the parameters and my CI Pipeline can then update the stack when needed.
Re:Using the New AWS Secrets Manager for Serverless
by dmlittle on Tuesday January 08, 2019 @06:27PM
(#18860829)
Fetching parameters by path is an easy way to get bulk parameters and avoiding the rate limits.
Re:Using the New AWS Secrets Manager for Serverless
by timclark on Tuesday January 08, 2019 @06:43PM
(#18860935)
It has caused us failures as lambdas have scaled up as it is quite easy to hit a rate limit.
Re:Using the New AWS Secrets Manager for Serverless
by sudosteph on Tuesday January 08, 2019 @07:09PM
(#18861093)
For me, I was able to reduce the calls from lambda pretty significantly by doing the parameter pull step outside of the handler, so it is available as part of the execution context between runs (similar to how many people do DB connection with lambda). I still do the decrypt step within the handler though because I don't like the idea of having decrypted values lying around, but the limit for KMS decrypt operations is independent of SSM, and is a 10k/s shared limit in the regions I use, so I haven't had any issues yet.
I imagine that with a serveless workflow, this might be an even bigger problem.
I haven't explored Secrets Manager yet though.