How I Set Up Multi-Cloud Infrastructure with Terraform

Running Terraform across AWS and Azure at the same time can be challenging. But, a solid structure helps you scale without duplication or chaos. Here’s how I do it: Be very specific Create a “multi-cloud” folder. Under “multi-cloud”, create AWS and Azure into their own folders. Each has its own main.tf, variables.tf, and outputs.tf to […]
How to Troubleshoot Terraform

When working with Terraform, you might run into four types of issues: language, state, core, and provider errors. Understanding these error types will allow you to troubleshoot terraform issues and keep your infrastructure running smoothly. Here’s what each one means and how they can affect your workflow: – Language Errors: Terraform uses HashiCorp Configuration Language […]
How To Protect Sensitive Input Variables with Terraform

When configuring infrastructure, you often need to use sensitive data such as usernames, passwords, API tokens, or Personally Identifiable Information (PII). It’s crucial to prevent accidental exposure of this information in CLI output, logs, or version control. Terraform offers built-in features to help safeguard sensitive data. Overview In this tutorial, you’ll learn how to use […]
Creating a Spotify Playlist with Terraform

In my quest to master Terraform, I decided to take on a few challenges. While Terraform is widely used for managing cloud infrastructure, it can also interact with various services including Spotify. In this tutorial, you’ll learn how to use Terraform to search for an artist, album, or song on Spotify and create a playlist […]
How I Passed My Terraform Associate Exam

If you’re preparing for the HashiCorp Terraform Associate Exam, you might be wondering where to start, which resources to use, and how to approach your study plan. I recently passed the exam, and I want to share my experience to help others do the same. The Terraform Associate certification is for Cloud Engineers specializing in […]
Deploy Blue-Green Environments with Terraform

Deploying new versions of an application without causing downtime can feel like walking a tightrope, but it doesn’t have to be. Blue-green deployment is a smart way to release updates while keeping your application running smoothly. The idea is simple, you have two environments: blue (current version) and green (new version). By controlling traffic between […]
Writing Terraform Tests

Terraform tests allow you to verify your module configurations without impacting your existing state or resources. Testing in Terraform is separate from the regular plan or apply workflows. Instead, it temporarily builds infrastructure and tests assertions against in-memory states for short-lived resources. This process enables you to safely validate changes without affecting your existing infrastructure. […]
Creating EKS Cluster using Terraform Modules

In this short lab, I will show you how to create an EKS Cluster properly using Terraform. Usually, I’d create a `main.tf` file and put all the resources needed to set up your EKS cluster in one place. But this time, I’ll be using Terraform modules instead. Modules make things a lot easier to manage. […]
Deploying a dynamic E-commerce Website on AWS Using Terraform

In this short tutorial, I will show you how to deploy an ecommerce website on AWS, how Terraform helps you quickly build and maintain a strong, reliable platform that can grow with your business. Background A three-tier architecture is a common framework for building scalable, reliable cloud applications. It breaks the application into three distinct […]
Troubleshooting Terraform: Use Terraform Modules To Address Common Issues

In this short tutorial, I will show you how to use Terraform modules to troubleshoot common issues when building AWS infrastructure. Specifically, we’ll address leap and bounds issues to ensure a smoother and more efficient deployment process. Background Terraform is like a magic wand for managing your cloud infrastructure. Imagine writing a few lines of […]