-
How to Create an ALB Listener with Multiple Path Conditions Using Terraform
When designing modern cloud-native applications, it’s common to host multiple services under a single domain. Application Load Balancers (ALBs) in AWS provide an efficient way to route traffic to different backend services based on URL path conditions. This article will guide you through creating an ALB listener with multiple path-based routing conditions using Terraform, assuming…
-
Installing and Testing Sealed Secrets on a k8s Cluster Using Terraform
Introduction In a Kubernetes environment, secrets are often used to store sensitive information like passwords, API keys, and certificates. However, these secrets are stored in plain text within the cluster, making them vulnerable to attacks. To secure this sensitive information, Sealed Secrets provides a way to encrypt secrets before they are stored in the cluster,…
-
From Launch to Management: How to Handle AWS SNS Using Terraform
Deploying and Managing AWS SNS with Terraform Amazon Simple Notification Service (SNS) is a fully managed messaging service that facilitates communication between distributed systems by sending messages to subscribers via various protocols such as HTTP/S, email, SMS, and AWS Lambda. By using Terraform, you can automate the creation, configuration, and management of SNS topics and…
-
How to Launch Zipkin and Sentry in a Local Kind Cluster Using Terraform and Helm
In modern software development, monitoring and observability are crucial for maintaining the health and performance of applications. Zipkin and Sentry are two powerful tools that can be used to track errors and distributed traces in your applications. In this article, we’ll guide you through the process of deploying Zipkin and Sentry on a local Kubernetes…
-
The Terraform Toolkit: Spinning Up an EKS Cluster
Creating an Amazon EKS (Elastic Kubernetes Service) cluster using Terraform involves a series of carefully orchestrated steps. Each step can be encapsulated within its own Terraform module for better modularity and reusability. Here’s a breakdown of how to structure your Terraform project to deploy an EKS cluster on AWS. 1. VPC Module 2. EKS Module…
-
Terraformer and TerraCognita: Tools for Infrastructure as Code Transformation
As organizations increasingly adopt Infrastructure as Code (IaC) to manage their cloud environments, tools like Terraformer and TerraCognita have become essential for simplifying the migration of existing infrastructure to Terraform. These tools automate the process of generating Terraform configurations from existing cloud resources, enabling teams to manage their infrastructure more efficiently and consistently. What is…
-
The Evolution of Terraform Project Structures: From Simple Beginnings to Enterprise-Scale Infrastructure
As you embark on your journey with Terraform, you’ll quickly realize that what starts as a modest project can evolve into something much larger and more complex. Whether you’re just tinkering with Terraform for a small side project or managing a sprawling enterprise infrastructure, understanding how to structure your Terraform code effectively is crucial for…
-
How to Move Terraform State Between AWS Accounts
Managing Terraform state effectively is crucial for maintaining the integrity of your infrastructure. As your organization grows, you may need to move Terraform state files between different AWS accounts for security, compliance, or organizational restructuring reasons. This article provides steps how to safely migrate your Terraform state from one AWS account to another. Why Move…
-
Managing Terraform State Across AWS Accounts: A Guide to Cross-Account Configuration
When working with Terraform in multi-account AWS environments, it’s often necessary to store the Terraform state in one AWS account (let’s call it Account A) while provisioning infrastructure in another account (Account B). This setup enhances security, centralizes state management, and facilitates better separation of duties. Here’s how you can achieve this using cross-account roles…