projen
middy
projen | middy | |
---|---|---|
19 | 22 | |
2,472 | 3,637 | |
1.8% | 0.6% | |
9.7 | 9.3 | |
6 days ago | 13 days ago | |
TypeScript | JavaScript | |
Apache License 2.0 | MIT License |
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.
projen
-
Building a smart home sensor application with AWS AppSync and AWS Amplify components
This project uses AWS CDK as infrastructure as code solution. To maintain project configuration files efficiently, the project structure is generated using projen:
-
Project templating cloud
I recommend visiting the github page for projen and flicking through the documentation as I won't do it justice. Projen aims to:
-
My Infrastructure as Code Rosetta Stone - Deploying the same web application on AWS ECS Fargate with CDK, Terraform and Pulumi
cdk-django uses projen for maintaining the changelog and bumping versions and publishing to npm. It is popular among developers in the CDK community and is a really awesome tool since it basically uses one file (.projenrc.ts) to configure your entire repo, including files like tsconfig.json, package.json, and even GitHub Action workflows. It has a lot of configuration options, but I'm using it in a pretty simple way. It generates a new release and items to the changelog when I manually trigger a GitHub Action.
-
How to create an AWS Organization for your Account with the AWS CDK
I will give you step-by-step instructions to create your very first AWS Organization with the AWS CDK and the help of projen and cdk-organizations. You only need already an AWS Account created which is not a member or management account of another AWS Organization.
- Using PNPM instead of NPM for CDK
-
What are some cons of using CDK to create a small part of the platform that is currently deployed by Terraform?
If you go down that route you should use Projen to maintain the dependencies.
-
Newsletter martinmueller.dev 2022 week 19
An Open Source CDK Community project which I find super interesting. It is doing cherry-picking from AWS Amplify UI and AWS CDK for deployment. I do that in my private projects as well for example https://github.com/senjuns/senjuns. I think the author could enhance/simplify its repo even more by using https://github.com/projen/projen for the project setup.
-
AWS's Open Source Problem - by Corey Quinn
That said - https://github.com/firecracker-microvm/firecracker and https://github.com/bottlerocket-os/bottlerocket are interesting, and while AWS CDK is very AWS specific, the underlying jsii https://github.com/aws/jsii and projen https://github.com/projen/projen/issues are fundamental services.
- Why I Would Love You To Speak At CDK Day
-
How to Create Awesome Repeatable Project Setups for AWS CDK
The documentation for the classes of the bundled project types is at https://github.com/projen/projen/. In this documentation, you can see that the property github includes a mergify entry, which will define if the Mergify configuration is used. The default if the github entry is not specified, is that it will be included. So in our test, we can check that this configuration is not in place, after creating a project with the mandatory parameters.
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.
What are some alternatives?
jest - Delightful JavaScript Testing.
aws-cdk - The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
CDK-SPA-Deploy - This is an AWS CDK Construct to make deploying a single page website (Angular/React/Vue) to AWS S3 behind SSL/Cloudfront easier
dynamodb-toolbox - A simple set of tools for working with Amazon DynamoDB and the DocumentClient
esbuild-hot-reload - Playground repo for experimenting with esbuild + hot reload
aws-sdk-js-v3 - Modularized AWS SDK for JavaScript.
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!
typescript-badges - :smirk_cat: TypeScript Badges
awesome-projen - P6M7G8's Awesome Projen
powertools-lambda-typescript - Powertools is a developer toolkit to implement Serverless best practices and increase developer velocity.
cdk-esbuild-s3-website
serverless-graphql - Serverless GraphQL Examples for AWS AppSync and Apollo