Posts

Showing posts with the label deploy

Introduction to AWS Lightsail and Advantages of Simplified Cloud Platforms

Image
Introduction Amazon Lightsail is a Cloud Platform (PaaS/IaaS) service designed to simplify the deployment of web applications and virtual servers for users. It is an ideal solution for developers, small businesses, or those new to AWS who do not want to deal with the complexity of EC2. Advantages Simple to use: Provides pre-configured blueprints for popular platforms such as WordPress, Node.js, or LAMP stack with just a few clicks. Predictable costs: Lightsail uses a flat-rate monthly pricing model, including storage (SSD), bandwidth, and RAM, helping you easily manage your budget. Intuitive interface: The Console is streamlined, focusing on core features like Instance, Database, and Networking management. Easy to scale: When the application outgrows Lightsail's scale, you can easily export a snapshot to Amazon EC2 to take full advantage of the AWS ecosystem. Built-in services: Comes with essential features like DNS management, Static IP, basic Firewall, and Load Balancer. Prerequi...

AWS App Runner: Simplify Your Deployment

Image
Introduction AWS App Runner is a fully managed service that helps developers easily deploy containerized web applications and APIs quickly without worrying about managing complex server infrastructure or Kubernetes clusters. With App Runner, you only need to provide source code or a container image; the service will automatically handle everything from building and deployment to load balancing and traffic encryption. Advantages Maximum Simplification: No need to configure VPCs, set up Load Balancers, or manage security patches for the operating system. Everything is automated by AWS "from A to Z". Auto Scaling: The system automatically adjusts the number of resources based on actual traffic. When there are no requests, the application can maintain a minimum level to save costs. Seamless CI/CD Integration: App Runner supports direct connection to source code repositories (such as GitHub) or container registries (Amazon ECR). When you push new code, the service will automatical...

Using AWS ECS Fargate Horizontal Auto Scaling

Image
Introduction In previous articles, I have provided instructions on using AWS ECS Fargate to deploy a NestJS Docker image utilizing S3 Service; you can review them to understand the basic concepts before proceeding. In this article, I will guide you through configuring auto scaling to automatically increase or decrease the number of instances based on demand. Prerequisites In the NestJS project, to easily test the auto-scaling feature, it is necessary to create an API with a relatively long processing time to drive CPU usage up during execution. I will create a simple API as follows for testing; you can add it to your project or replace it with any equivalent API of your choice. Afterward, build the Docker image and push it to AWS ECR. import {   Controller ,   Get ,   ParseIntPipe ,   Query , } from '@nestjs/common' @ Controller ( 'test' ) export class TestController {   @ Get ( 'sum' )   async sum (@ Query ( 'value' , ParseIntPipe ) value : number...