Getting Started with Serverless Framework

Getting Started with Serverless Framework

What is Serverless? If you are really new to Serverless, here’s my previous article about Serverless Architecture. Today we are going to create a simple CRUD application using Serverless framework with NodeJS and AWS.

What is Serverless? If you are really new to Serverless, here’s my previous article about  Serverless Architecture. Today we are going to create a simple CRUD application using Serverless framework with NodeJS and AWS.

Environment Setup

First of all, let’s install Serverless. To install run the command below.

**npm install -g serverless**

Now we have to configure our credentials. We can do it by executing the following command.

**serverless config credentials --provider aws --key <aws access key> --secret <aws secret key> --profile osusara**

So I’m going to use AWS as my provider. When we creating an IAM user in AWS, we can get the Access Key and Secret Key. We have to include them here as well. Then the--profile part is not a must. We can give a profile name to our configuration. If we didn’t put a profile, it will be the default profile.

For more details, here’s the Serverless  Getting Started guide and  AWS Config Credentials reference.

dynamodb aws nodejs serverless serverless-framework

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

How To Unite AWS KMS with Serverless Application Model (SAM)

AWS KMS is a Key Management Service that let you create Cryptographic keys that you can use to encrypt and decrypt data and also other keys. You can read more about it here.

Route Management Frameworks for AWS Lambda and NodeJS

A comprehensive list of route management frameworks that NodeJS developers can utilize when building serverless APIs using AWS Lambda. Route Management Frameworks for AWS Lambda and NodeJS

A Deep Dive into Serverless Tracing with AWS X Ray & Lambda

A Deep Dive into Serverless Tracing with AWS X Ray & Lambda. Over the past few weeks I’ve been experimenting with building a Serverless API on AWS with the goal of having everything needed to run a production system. One necessary piece was distributed tracing. While I’d seen a bit of what some non-AWS options had to offer, the extra cost of the services themselves, along with actually getting the data to them, was a bit prohibitive for what I imagined should be possible (and cheaper) with only AWS, which brought me to X Ray.

Serverless CI/CD on the AWS Cloud

To set up a serverless CI/CD pipeline in your AWS environments, there are several key services that you need to use. Find out more here.

Serverless Express – Easy APIs On AWS Lambda & AWS HTTP API

Serverless Express enables you to easily host Express.js APIs on AWS Lambda and AWS HTTP API. Here is how to get started and deliver a Serverless Express.js based API with a custom domain, free SSL certificate and much more!