Posts

Showing posts with the label cloud

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...

Using AWS ECS Fargate with Cloudfront and WAF

Image
Introduction I have already presented the concepts of AWS ECS in my previous post, which you can review for more information. In this article, I will guide you on how to deploy a docker image with AWS ECS on Cloudfront using WAF, monitored by Cloudwatch. Additionally, we will setup alerts to automatically send emails and notifications to Telegram when a WAF rule is matched. Prerequisites You can continue using the NestJS source code that I guided you through in previous articles or use your own project. After pushing the docker image to ECR, please proceed to the following sections. Detail The workflow will be as follows: Requests are sent to Cloudfront. Here, the rules in WAF take effect to block requests with security issues, preventing them from reaching our Load Balancer. Cloudwatch will aggregate results based on metrics; if the required threshold is reached, it will send an email and a notification to Telegram for alerting. If the request has no issues, Cloudfront will attach a s...