Our great sponsors
-
terraform-nlb-alb-connector
Discontinued Terraform module to deploy an NLB in front of your ALB and automatically update the targetgroups.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
To set up the infrastructure I'm using Terraform. The code is available on my GitHub. We need to create two VPCs. I've created a basic module which will create a VPC which contains four subnets (in two AZs) and deploy a NAT Gateway and an Internet Gateway. Also the route tables are configured properly.
Here I'm using some new AWS magic. Since September 2021 it's possible to register an ALB as target of an NLB. This was not possible in the past. I created some Terraform module which deployed a Lambda to monitor the IPs of the ALB and updated the NLB target group when needed. I'm very happy that it's not needed anymore! Now we can define alb as target_type for our NLB target group.
Related posts
- Stack Grafana deployed on AWS ECS -Part 1 - Create a Cluster
- Terraform Starter Boilerplate for GCP using Terragrunt
- Authorization and Amazon Verified Permissions - A New Way to Manage Permissions Part XIV: AVP Getting Started
- Despliega una Infraestructura de Red AWS Robusta con Terraform
- Terraform-AWS-Nuke-Bomber