How to call multiple terraform modules in a single terragrunt file

in Terragrunt, you can call multiple Terraform modules from a single Terragrunt configuration file by using the terraform block in combination with child configurations. This is typically done by organizing your Terragrunt configuration into a hierarchy where each module is referenced in its own Terragrunt file, but managed centrally using a parent Terragrunt file. Here’s … Read more

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

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

Set two different Target Groups on AWS Load Balancer with Terraform

Last week, I wrote an infrastructure as a code via Terraform. In my case, I need to forward the traffic from AWS Application Load Balancer public interface to two different target groups. The hashicorp language (HCL) not a hard language but the document is missing a lot of subjects and also there are some points … Read more