Serverless Framework: Why? With Use Case Example— AWS S3 Micro-Client deployment

Image for post
Image for post

Serverless Framework

Why? 💡

No self-managed infrastructure

Reliable up-time

Pay-Per-Use

Infrastructure-as-code (IAC)

Responsibility and Accountability

Micro-Clients?

The How… 🤔

S3 buckets, CloudFront distribution

Deployment Strategies

Getting Started 🚀🤓

Image for post
Image for post
Microclient folder structure
{
"name": "microclient-one",
"version": "0.1.0",
"dependencies": {
...
"serverless": "^2.8.0",
"serverless-finch": "^2.6.0"
},
"scripts": {
...
"predeploy": "npm run build",
"deploy": "serverless client deploy --verbose --no-confirm"
},
npm i serverless
npm i serverless-finch
Image for post
Image for post
Serverless YAML configuration
npm run deploy
Image for post
Image for post
Success! client deployed to S3
Image for post
Image for post
Two microclients deployed in AWS

Summary

Serverless Developer/Cloud Engineer UK —Helping others build resilient and maintainable software! 🚀 Support me @ https://www.buymeacoffee.com/rbulmer55 ☕️

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store