img

Serverless tracing with AWS X-Ray

TL;DR Check out the AWS CloudWatch ServiceLens chapter on how powerful AWS X-Ray can be at spotting and signalling application errors. Look at this repository on Github for the example implementation. Thanks for reading, and till next week! Topic break-down TL;DR Topic break-down Serverless tracing with AWS X-Ray AWS Lambda 1) AWS Lambda resource 2) AWS IAM Policy AWS SNS AWS API Gateway 1) API Gateway stage resource 2) AWS X-Ray sampling rules AWS CloudWatch ServiceLens Conclusion Further Reading Serverless tracing with AWS X-Ray For this article we’re using the OpenAPI series Github repository. »

img

How to do logging on AWS Serverless

TL;DR All code related this article has been added to the OpenAPI series repo, open-tf-example. Read the description in the last chapter how to run it and view the results in CloudWatch logs. Thanks for reading! Topic break-down TL;DR Topic break-down How to do logging on AWS Serverless Infrastructure code Lambda logs configuration API Gateway OpenAPI integration Correlation ID Debug logging in Production Runtime code Debug log level in Production Correlation Id setting and forwarding Log aggregator and Search Example CloudWatch Logs Insights What’s next Further reading Logging best practices Node logging Libraries and how-to’s: CloudWatch Logs and Monitoring: How to do logging on AWS Serverless In my opinion logging on AWS Serverless can be broken up into 4 area’s: »

img

How to monitor your serverless (Open)API?

TL;DR You can monitor your Serverless (Open)API with the help of CloudWatch Alarms. Please refer to this Github repository for the code. CloudWatch Alarms for API Gateway are detailed in directory; ./modules/cloudwatch-alarms-apigateway and for AWS Lambda in; ./modules/cloudwatch-alarms-lambda. Next week i’ll discuss making sense of logs and failures with AWS CloudWatch, and enable tracing with AWS X-Ray. Thanks for reading! Topic break-down TL;DR Topic break-down How to monitor your serverless (Open)API? »

How to monitor your serverless (Open)API?

img

OpenAPI with Terraform on AWS API Gateway

TL;DR You just want to dig into the source code, look here on Github. The README.md contains instructions on how to run it. See this section for a brief solution break-down. If you’re interested in how I deployed this solution with Terraform, go here. If you’re interested in the testing aspects, go here. Thanks for reading and till next week! Topic break-down TL;DR Topic break-down OpenAPI with Terraform on AWS API Gateway A brief introduction to the code base What is the OpenAPI specification? »

Create a REST API with an OpenAPI document on AWS API Gateway.

img

Why document a REST API as code?

TL;DR If you’re already familiar with OpenAPI and its place in the application life-cycle, skip to the tooling chapter which is the core of this blog post. Stay tuned for the next article. I’ll discuss implementation with OpenAPI, and Terraform support tooling. Thanks for reading! Topic break-down TL;DR Topic break-down Why document a REST API as code? What is OpenAPI? Where does OpenAPI fit in? Requirements, Analysis and Design Code and Test Production and Maintenance Tooling? »

How can you document a REST API as efficiently and effective as possible?