middy
aws-sdk-js-v3
Our great sponsors
middy | aws-sdk-js-v3 | |
---|---|---|
22 | 18 | |
3,633 | 2,850 | |
0.9% | 2.6% | |
9.4 | 9.9 | |
5 days ago | 7 days ago | |
JavaScript | TypeScript | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
middy
-
Clean authorization control in serverless functions
In many cases, you will have to write the same authorization code in multiple functions. For example, you might want to check that the user is in the requested organization. You can share this code in a middleware. If you are using AWS Lambda, you can rely on middy.
-
Testing Serverless Applications on AWS
Adding the is-test flag to our object metadata gave us our way of passing some kind of test context into our workload. The next step was to make the Lambda Function capable of discovering the context and then using that to control how it behaves under test. For this we used Middy.
-
Learn serverless on AWS step-by-step: Strong Types!
I also decided to use the middy library to add CORS management to our lambda function. This will allow us to call our lambda function from our frontend, without having to worry about CORS.
-
Go Lambda Middlewae
Is there any equivalent to Node based https://middy.js.org/ for Golang?
- Middy: AWS Lambda middleware framework for Node.js
-
The Old Faithful: Why SSM Parameter Store still reigns over Secrets Manager
And if your requirements were to change at a later date, it’s straightforward to swap out SSM Parameter Store with Secrets Manager there and then. Especially if you’re accessing the relevant service through a middleware layer such as Middy for javascript Lambda functions.
-
Implementing Magic Links with Amazon Cognito: A Step-by-Step Guide
This function uses the Middy middleware engine to handle unhandled errors and add CORS headers in the response.
-
Ask HN: What would be your stack if you are building an MVP today?
I mean I'm literally building an AWS lambda function that outputs HTML when it's called via API Gateway. So someone hits https://mydomain.com/mycoolpage, then the MyCoolPage AWS Lambda function is executed and outputs whatever.
If you're interested, I use https://middy.js.org/ as a middleware engine for my AWS lambda functions which I find helpful.
I use the open sourced serverless framework for doing deploys https://www.serverless.com/
-
tRPC: Build Full-Stack TypeScript Applications With Type Safety
middy for lambda-side middleware
-
How to Securely Use Secrets in AWS Lambda?
That is it from the CDK side. Now let us create the handler and retrieve that secret. I like to use middy which describes itself as "stylish Node.js middleware engine for AWS Lambda". It offers some helpful middlewares like ssm which will help us retrieve and cache values from SSM Parameter Store. (Middy provides various other official middlewares including one for Secrets Manager.) I prefer a middleware for this because it keeps the code for retrieving the secret out of your handler which should deal with actual business logic.
aws-sdk-js-v3
-
AWS SDK v3 + DAX
From this GitHub issue and this one from 2021 it seems like AWS just doesn't care about this - so, asking here if anyone knows of a workaround (other than "just keep using v2"... that's not a long-term solution), or if any AWS devs can shed some light on the situation.
-
Why and how you should use AWS SDK for JavaScript (v3) on Node.js 18
First class typescript support, but everything is possibly undefined?
-
ts-dynamodb-attributes-transformer - A code transformer of TypeScript object to DynamoDB attributes
I published "ts-dynamodb-attributes-transformer" that transforms the TypsScript object to Amazon DynamoDB attributes (precisely, this attributes type is Record that is defined at aws-sdk-js-v3).
- A New Hope for Object Storage: R2 Enters Open Beta
-
Working with EKS: Using IAM and native K8s service accounts to access AWS S3
Once we have verified the presence of the AWS_WEB_IDENTITY_TOKEN_FILE and AWS_ROLE_ARN environment variables, our pod is ready to connect to and read from S3. The following Typescript snippet illustrates a simple example which fetches the names of all the S3 buckets in our account. It uses the AWS SDK for JavaScript V3
-
Deno in 2021
If you'd like the Amazon JavaScript SDK to support Deno then make your support known on this thread:
https://github.com/aws/aws-sdk-js-v3/issues/1289
-
AWS SDK v2 or v3 - which one should you use?
I really suggest checking out the repo and especially the Upgrading section for more details.
-
AWS management: please add more staff to work on the AWS JS v3 SDK
No CloudFront URL signing - how can v3 SDK be labeled as general release if it doesn't have feature parity with the v2 SDK?
- AWS keeps dropping the ball with their AWS JavaScript v3 SDK
- ZA̡͊͠͝LGΌ causes "Invalid MD5 checksum on messages"
What are some alternatives?
aws-cdk - The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
aws4fetch - A compact AWS client for modern JS environments
dynamodb-toolbox - A simple set of tools for working with Amazon DynamoDB and the DocumentClient
cfn-diagram - CLI tool to visualise CloudFormation/SAM/CDK stacks as visjs networks, draw.io or ascii-art diagrams.
typescript-badges - :smirk_cat: TypeScript Badges
aws-sdk-js - AWS SDK for JavaScript in the browser and Node.js
powertools-lambda-typescript - Powertools is a developer toolkit to implement Serverless best practices and increase developer velocity.
jsii - jsii allows code in any language to naturally interact with JavaScript classes. It is the technology that enables the AWS Cloud Development Kit to deliver polyglot libraries from a single codebase!
projen - Rapidly build modern applications with advanced configuration management
bref - Serverless PHP on AWS Lambda
serverless-graphql - Serverless GraphQL Examples for AWS AppSync and Apollo
cdk-appsync-project - Projen managed AppSync Transformer project