Hello everyone! What are your opinion about Middy ...
# random
i
Hello everyone! What are your opinion about Middy (https://github.com/middyjs/middy ) ? Ever tried? Iโ€™m using in a few projects and loving it. I even release my second (is just one my first steps in open source - fourth to be exactly) middleware: https://dev.to/aws-builders/redis-exploring-redis-as-serverless-database-to-solve-idempotence-in-apis-2gma
r
I've thought it looked interesting and useful when I checked it out a fair while back but I seem to remember it didn't play well with TypeScript at the time but maybe I'm mis-remembering. What are you using it for?
Other than your redis middleware, of course ๐Ÿ˜„
d
We use it heavily
Think we use 7-8 of their middleware and continue the pattern to add our custom ones like auth, logging, sanitation, etc
r
Sounds like I need to take another look. Is that with Typescript?
d
With Typescript. Believe their latest version improves their ts support. We donโ€™t enforce super strict types so there are some holes, but it's manageable
r
OK, great. Thanks for clarifying
@Dennis Dang - do you happen to know if the SSM middleware for middy supports the retrieval of securestring type parameters?
d
Have not used that one. I pull SSM values during the build step and inject into an env variable.
r
That was fast! Thanks, that's a good idea i hadn't considered, cheers
d
that @ notification hahahah
r
Yeah, sorry, a bit presumptuous of me.
d
nope totally fine. it gets attention ๐Ÿ˜„ .
import * as secretsmanager from "@aws-cdk/aws-secretsmanager";
secretsmanager.Secret.fromSecretNameV2(this, etc, etc, etc);
r
excellent, thanks
a
I use my own middleware, simple, fast and small bundle size https://github.com/Albert-Gao/micro-aws-lambda
r
That looks really neat, @Albert Gao
a
@Ross Coundon thanks, mate! try if suits your needs and any feedback would be thankful ๐Ÿ™†โ€โ™‚๏ธ