Creating SSH Keys for Secure Access to AWS EC2 Instances with Terraform

When working with cloud infrastructure, security is of utmost importance. One critical aspect of security is controlling access to cloud resources, and this is particularly important when working with AWS EC2 instances. SSH keys are one way to secure access to EC2 instances, and with Terraform, it is straightforward to create and manage these keys. … Read more

Prevent nginx from caching DNS for proxy

Hello everyone, If you are using nginx as a proxy and/or reverse proxy, the nginx is caching the DNS information and if you are using AWS Application Load Balancer behind the nginx, and nginx sometimes needs to restart and/or DNS flushing to send a request to the AWS Application Load Balancer because AWS is always … Read more

Deploy HA nginx to AWS ECS with Geolocation Routing via Terraform

Today, I want to refactor the Deploy nginx docker to AWS ECS with Terraform Automation project from a single region to multi-region support. This time, I pushed all of Terraform source code to my GitLab account. Now, the updated project is creating all infrastructure in Ireland and N.Virginia region.Now, we have a geo-location-based route policy … Read more

Deploy nginx docker to AWS ECS with Terraform Automation

Last night, I want to play with AWS ECS Service. I wrote a terraform code to deploy everything at the same time. The terraform is creating all of the resources for run ECS in different VPC and isolated from your other resources. I used nginx:alpine docker image for this project but if you need, you … Read more

How to Install Node Exporter on Linux Server

Node Exporter is a Prometheus exporter for server level and OS level metrics with configurable metric collectors. It helps us in measuring various server resources such as RAM, disk space, and CPU utilization. Node exporter is a good solution to collect all the Linux server-related metrics and statistics for monitoring. Before Start Prometheus ServerAfter node … Read more

Enable Logrotation for Docker Containers

When you install and use Docker on your system, the container running in the docker can generate a large number of logs while you are not aware of the background. Although the Docker service normally supports logrotate, this support comes off by default. If one day your disk ends suddenly, then you will know exactly … Read more