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

Connect your AWS to GCP with Terraform via IPSec Site-to-Site VPN

Today, I wrote another IaaC (infrastructure as a code) for my needs. You can create a secure VPN connection (IPsec) between Amazon Web Services (AWS) and Google Cloud Platform (GCP). What can this do? Creating a Customer Gateway on AWS. Creating a Virtual Private Gateway on AWS. Creating a Site-to-Site VPN Connection on AWS. Creating … Read more

How to secure your Amazon Web Services account

Security first because security is so important! When you create an Amazon Web Services account, that account called a root. Root level account has got full access to all resources running in the cloud environment and I totally recommended don’t use your root account to manage the resources. I hope, this article will help you … 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

Amazon S3 CORS Settings with CloudFront on Amazon Web Services

If you are serving static content directly Amazon S3 via CloudFront (CDN) you should probably get an error about fonts, images or other static contents to deliver for your users. Actually, it’s not complicated. You can fix this issue on your Amazon S3 Bucket CORS settings. What is Amazon S3 CORS? Cross Origin Resource Sharing … Read more