raksha's blog

Do you know how to speed up your serverless application deployment using AWS Cloudformation?

This post will teach you how to deploy your app to AWS lambda and API Gateway using AWS Cloudformation.

Serverless architectures are easy to use. But did you ever think you can deploy them quickly too? AWS Cloudformation takes the lead for it.

Prerequisites

  1. IAM user — to perform AWS CLI operations on our behalf.
  2. S3 bucket — to upload a zip of our code.

Table of contents

  • IAM user permissions
  • Introduction to AWS Lambda and API Gateway
  • Introduction to Cloudformation
  • Configure AWS CLI with IAM user
  • Create Cloudformation stack using AWS CLI
  • Get familiar with the Clouformation template
  • Create AWS Lambda Execution Role using Cloudformation
  • Create AWS Lambda function using Cloudformation
  • Create API Gateway Rest API using Cloudformation
  • Create API Gateway method, resource, and proxy using Cloudformation
  • Create a Lambda permission to allow API Gateway to invoke the Lambda function using Cloudformation
  • Configure a custom domain to access API Gateways using Cloudformation

Cloudformation works a way better to automate any AWS service deployments like EC2, IAM, and many more.

If you want to refer to the full code, it’s available at serverless deployment using Cloudformation with GitLab CI integration.

To learn more, read the post on canopas blog.

Want to learn how to deploy the Server-side rendering(SSR) Vite app on AWS?

In this blog, we will see how to deploy the SSR Vite app on AWS and automate the deployment process. Though this article refers to only the Vite app, it works for almost all SSR apps.

This blog will answer many of your questions. Like…

What is SSR?

How does the SSR app deployment work?

How do you implement SSR for SEO and loading time optimizations?

You will learn how to deploy the SSR app on AWS using the following services.

ECS (Elastic container service)

ECR (Elastic container registry)

ELB (Elastic load balancer)

Cloudformation

Github actions to automate deployment

We will create an AWS cloudformation stack, that contains all required resources to deploy the app, and it will be automated by Github actions.

You can read full article here https://blog.canopas.com/complete-guide-to-deploying-ssr-vite-apps-on-aws-with-automation-27676113d6ac

Pages: « 1 2 3