URL redirects with AWS S3 and Cloudfront

Hosting a static website with S3 is awesome! It is Faster, Cheaper, Zero maintenance. In this article, we will see how to do URL redirects on a website hosted with AWS S3 and Cloudfront. There was a scenario which I was faced once in my company, One of our websites had deleted some old content and replaced it with new content and URL. And when people who google search for that particular content they get the old URL which doest exists....

January 28, 2020 · 2 min · Vishnu Prasad

Automating Deployment Of Lambda Functions Using Serverless Framework, AWS CodePipeline

In this guide we will set up a very simple REST API endpoint with the serverless framework, AWS Lambda, and API Gateway and deploy it to AWS Lambda with Github, AWS Codepipeline, Codebuild 1. Install the Serverless Framework npm install serverless -g 2. Create a project serverless create --template aws-nodejs --path serverless-nodejs-api This will create two files handler.js and serveless.yml 'use strict'; module.exports.api = async event => { return { statusCode: 200, body: JSON....

January 1, 2020 · 4 min · Vishnu Prasad