img

How to setup a Serverless application with AWS SAM and Terraform

TLDR; AWS Serverless Application Model (SAM) is used to quickly create Serverless applications with support for; local development that emulates AWS Lambda, and API Gateway via Docker takes care of blue/green deployments via AWS CodeDeploy infrastructure as code, repeatedly deploy the same infrastructure on multiple environments (dev, test, production). Terraform is a Cloud agnostic Infrastructure as Code language and tooling. takes care of non-serverless, permissions, the “difficult stuff”. »

img

How to protect Serverless (Open)API's?

Last week I was unable to deliver a proper article due to the sudden Corona measures (I hope everyone stays safe out there!), so I decided to postpone. With that said, I’d like to discuss how to secure your (Open)API’s using the tools that already exist in the AWS services we’re using, and how AWS WAF (Web Application Firewall) can potentially assist (for a price). We’ll cover the following topics: »

img

How to setup a basic VPC with EC2 and RDS using Terraform

This guide will help you set up a basic AWS VPC with a virtual machine (EC2) and database (RDS) using Terraform (Infrastructure as Code). I’ll be breaking this topic down as follows: The outline VPC EC2 EC2 Security group RDS RDS Security group Conclusion The outline We’re going to create the following on AWS: A VPC with 1 Route table that connects the Internet Gateway to the public subnet that hosts the EC2 instance. »

img

Serverless CI/CD for AWS Lambda

Today I’ll explain how to setup CI/CD (Continuous Integration / Continuous Development) with Terraform and AWS CodePipeline. To do that we use the same repository as the other articles in this series: See the full code for the Terraform infrastructure part here, and the full code for the NodeJS part here. What are we going to cover today? 1. Setup Terraform (openapi-tf-example repo) 1.1 Source code 1.2 AWS CodeBuild 1. »

img

Automated Static Site With AWS CodePipeline and CloudFormation

This is a guide to setting up and deploying your static site with Hugo on AWS infrastructure. I’ll explain how to set up an automated deployment with AWS CodePipeline using a CloudFormation template, and an AWS Lambda function to generate our site and deploy it to S3. I’ve dedicated a section about costs as well to show what kind of potential savings you could realize using a static site on AWS. »