In this post I will explore 4 different methods that can be used to pass configuration values to the AWS CDK. We will first look at using the context variables in the cdk.json file, then move those same variables out to YAML files. The third method will read the exact same config via SDK(API) call from AWS SSM Parameter Store. The fourth and my favourite is a combination of two and three in conjunction with using GULP.js as a build tool.
CloudFront reverse proxy API Gateway to prevent CORS
In this blog we will do a quick recap of CORS and reverse proxies. Then we will show how a reverse proxy can eliminate CORS, specifically in the context of a SPA hosted on CloudFront with an API Gateway backend. The sample code focuses on public, authenticated routes (Authorization header) and IAM signed request all being reverse proxied through CloudFront.
Refactoring a distributed monolith to microservices
This article documents the thought process and steps involved in refactoring a distributed monolith to microservices. We are going to remove API GW, use Amazon Event Bridge and implement BASE consistency in the system to truly decouple our microservices.
AWS Serverless: you might not need third party monitoring
I hardly ever find myself reaching for third party monitoring services these days. I rather use the AWS native observability, monitoring and alerting services.
An unexpected journey with Lambda & OracleDB
We create a Lambda layer with AWS CDK for the NodeJS Lambda function to consume; this consists of the Oracle Instant Client Basic Lite v19.x libs + the libaio.so.1 file. Developers will need to manually install these as dev dependencies.
Choosing the right Database on AWS
These presentation slides explore the benefits of managed VS self hosted databases, provide use cases and samples for: Amazon RDS, DynamoDB, AWS DocumentDB, ElasticCache, Neptune, Elastic Search, Timestream and QLDB
DynamoDB Importer
This blog will demonstrate the high throughput rate that DynamoDB can handle by writing 1 million records in 60 seconds with a single Lambda, that is approximately 17k writes per second. This is all done with less than 250 lines of code and less than 70 lines of CloudFormation.
3 Ways to Autoscale on AWS
In this article, we will be looking at three different methods of Autoscaling applications. We’ll also try to leverage AWS manged services as much as possible. We will look at Elastic Beanstalk, ECS Fargate and Lambda.
13 AWS Lambda design considerations you need to know about – Part 2
How to use the technical considerations we checked out in part one to effectively design serverless and Lambda systems.
13 AWS Lambda design considerations you need to know about – Part 1
With great power comes great responsibility. Serverless design requires knowledge of different services and how they interact with each other. Just like any other technology, there are some tricky waters to navigate, but they are far outweighed by the power of what serverless has to offer. To stop this dream from turning into a nightmare, here are a few things to keep in mind when designing with AWS Lambda.