Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/panacloud-modern-global-apps/serverless-solutions-patterns-cdk
Serverless Solution and Architecture Patterns with CDK
https://github.com/panacloud-modern-global-apps/serverless-solutions-patterns-cdk
architecture-patterns aws cdk serverless
Last synced: 3 days ago
JSON representation
Serverless Solution and Architecture Patterns with CDK
- Host: GitHub
- URL: https://github.com/panacloud-modern-global-apps/serverless-solutions-patterns-cdk
- Owner: panacloud-modern-global-apps
- License: mit
- Created: 2020-11-27T07:27:52.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-17T04:08:51.000Z (almost 4 years ago)
- Last Synced: 2024-11-08T16:45:05.772Z (7 days ago)
- Topics: architecture-patterns, aws, cdk, serverless
- Language: TypeScript
- Homepage:
- Size: 1.42 MB
- Stars: 18
- Watchers: 7
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Serverless Solution and Architecture Patterns with CDK
`Note: It is very likely that you will have to rename references to files inside the bin and lib directories because folders were renamed. Also there is usually a problem when using the L3 constructs with the latest version of the CDK, so try to make sure that your cdk version is the same as the version of the construct you are using.`## Our Goal:
When we are defining our infrastructure with AWS CDK we notice that there are certain combinations of resources that we use in multiple places. AWS took advantage of this fact by providing some pre built constructs that include these common bunches of constructs like combining sqs and lambda etc. AWS provides us a library of such reusable L3 patterns which are already set with best practice default values so we can quickly just install them and use them without having to look up proper settings and permissions to glue them together.
This repo aims to show how we can use the AWS Solutions Constructs library like puzzle pieces when we want to implement a certain larger architecture. As examples of larger architectures we decided to use the patterns provided by CDKpatterns. However it is also reasonable to come up with your own large architectures and then browse through the solutions library to see which pieces can fit for your use case.
### Basic Breakdown of methodology
Pick a complex architecture, browse through the solutions constructs library and choose the constructs that you think are relevant and then glue them together and show how they are used.
## List of Useful Solutions Constructs
- [API Gateway-DynamoDB](https://docs.aws.amazon.com/solutions/latest/constructs/aws-apigateway-dynamodb.html)
- [API Gateway-Lambda](https://docs.aws.amazon.com/solutions/latest/constructs/aws-apigateway-lambda.html)
- [API Gateway-SQS](https://docs.aws.amazon.com/solutions/latest/constructs/aws-apigateway-sqs.html)
- [Cloudfront-API Gateway](https://docs.aws.amazon.com/solutions/latest/constructs/aws-cloudfront-apigateway.html)
- [Cloudfront-API Gateway-Lambda](https://docs.aws.amazon.com/solutions/latest/constructs/aws-cloudfront-apigateway-lambda.html)
- [Cloudfront-S3](https://docs.aws.amazon.com/solutions/latest/constructs/aws-cloudfront-s3.html)
- [Cognito-API Gateway-Lambda](https://docs.aws.amazon.com/solutions/latest/constructs/aws-cognito-apigateway-lambda.html)
- [DynamoDB Streams - Lambda](https://docs.aws.amazon.com/solutions/latest/constructs/aws-dynamodb-stream-lambda.html)
- [DynamoDB Streams- Lambda - Elasticsearch+Kibana](https://docs.aws.amazon.com/solutions/latest/constructsaws-dynamodb-stream-lambda-elasticsearch-kibana.html)
- [Events Rule - Step Functions](https://docs.aws.amazon.com/solutions/latest/constructs/aws-events-rule-step-function.html)
- [Lambda - Step functions](https://docs.aws.amazon.com/solutions/latest/constructs/aws-lambda-step-function.html)## Resources
[AWS Solutions Constructs – A Library of Architecture Patterns for the AWS CDK](https://aws.amazon.com/blogs/aws/aws-solutions-constructs-a-library-of-architecture-patterns-for-the-aws-cdk/)
[AWS Solution Constructs](https://aws.amazon.com/solutions/constructs/)
[AWS Solutions Constructs API](https://docs.aws.amazon.com/solutions/latest/constructs/welcome.html)
[AWS Solutions Constructs on GitHub](https://github.com/awslabs/aws-solutions-constructs)
[The CDK Patterns open source journey](https://aws.amazon.com/blogs/opensource/the-cdk-patterns-open-source-journey/)
[CDK Patterns at 20! Let's Walk Through all 20 Serverless Patterns for AWS](https://dev.to/nideveloper/cdk-patterns-at-20-let-s-walk-through-all-20-serverless-patterns-for-aws-d1n)
[Find A Pattern By AWS Well Architected Pillar](https://cdkpatterns.com/patterns/well-architected/)