GeekCoding101

  • Home
  • GenAI
    • Daily AI Insights
    • Machine Learning
    • Transformer
    • Azure AI
  • DevOps
    • Kubernetes
    • Terraform
  • Technology
    • Cybersecurity
    • Dev Tips
  • About
  • Contact
Terraform
Learn Terraform with hands-on labs, real-world tips, and study notes as I work toward master infrastructure as code (IaC).
Terraform

Terraform Associate Exam: A Powerful Guide about How to Prepare It

Today, I officially passed the HashiCorp Certified: Terraform Associate (003) exam! 🚀 It wasn’t hard — It's one hour exam and I finished in about 40 minutes, reviewed a few flagged questions, and then confidently submitted. Now, while I'm parking the more advanced HashiCorp Certified: Terraform Authoring & Operations Professional with AWS (HCTOP-002-AWS) for the moment, my next mission is to tackle Certified Kubernetes Administrator (CKA).After that, we’ll see whether I circle back to the Terraform Professional Level exam. 🔁 A Quick Rewind: The Journey If you’ve seen my last two blog posts about Terraform, you might have guessed it —👉 I actually booked the Terraform associate exam upfront, way before I even started the real preparation. I booked it on purpose to push myself — to create that real, no-turning-back deadline pressure.Since then, I've been squeezing in study time almost every day, balancing learning from Udemy courses, doing hands-on practice, and posting my Terraform learning journey right here on this blog. Lesson?Setting a real goal date works. It forces you to move! Terraform associate certification cost? It's $70.5 as of today. How long does terraform associate exam take? One hour. How many questions in terraform associate exam? Total 57 questions. What type of questions in Terraform associate exam? Good question! The Terraform associate exam includes: Multiple Choice (Single Answer) Multiple Choice (Multiple Answer) True/False Fill the blank You can find the sample questions at HashiCorp official site here. Is the Terraform Associate Certification worth it? In short: absolutely, yes — if you work with cloud infrastructure. Terraform has become…

April 27, 2025 0comments 70hotness 0likes Geekcoding101 Read all
Terraform

Terraform Meta Arguments Unlocked: Practical Patterns for Clean Infrastructure Code

I’ve always found Terraform meta arguments a bit confusing at first glance—not count, for_each, but things like connection, provisioner, depends_on, source and lifecycle often seem straightforward but can behave unexpectedly in different contexts. That’s why I decided to write this blog post: to break them down clearly, explain what each one does, and show practical examples of how and when to use them effectively. Terraform Meta Arguments Table   Meta-Argument Applicable To Description count resource, module, data Create multiple instances of a resource or module using a number. for_each resource, module, data Create multiple instances using a map or set of strings. More flexible than count. provider resource Specify which provider configuration to use if multiple are defined. depends_on resource, module, data Explicitly define dependencies between resources or modules. lifecycle resource Control resource creation and destruction behavior (e.g., prevent_destroy, ignore_changes). provisioner resource Run scripts or commands after a resource is created or destroyed. connection resource Define how to connect to a remote resource (used with provisioners). source module Specify the location of a module (registry, Git, local path, etc.). Usage 🧮 Terraform meta arguments: count resource "aws_instance" "web" { count = 3 ami = "ami-0c55b159cbfafe1f0" instance_type = "t2.micro" tags = { Name = "Web-${count.index}" } } ✅ Creates multiple instances using a simple integer. ⚠️ Attention Notes: count.index starts from 0. Not ideal for working with named collections (use for_each instead). Not supported in provider blocks. 🔁 Terraform meta arguments: for_each   resource "aws_s3_bucket" "example" { for_each = toset(["logs", "media", "backups"]) bucket = "my-bucket-${each.key}" acl = "private" } ✅ More flexible…

April 20, 2025 0comments 51hotness 0likes Geekcoding101 Read all
Terraform

Mastering Terraform with AWS Guide Part 1: Launch Real AWS Infrastructure with VPC, IAM and EC2

So… you’ve heard about Terraform. Maybe your team is using it, maybe your cloud dreams demand it — or maybe, like me, you’ve been deep in the Kubernetes jungle (My blog posts about K8S) and now want a declarative friend for AWS too! Either way, welcome aboard. In this post, I’ll walk you through setting up your Terraform with AWS environment from scratch, on a Mac. We’ll start simple and go all the way to managing VPC, Security Groups, IAM users and EC2 infrastructure using best practices -all built using Terraform with AWS. By the end, you’ll not only run Terraform with AWS  — you’ll understand all below questions, just to name a few, such as how to run terraform with aws, how to create aws ec2 instance using terraform, how to create security group in aws using terraform...fantastic! What is Terraform? Terraform is an open-source infrastructure as code (IaC) tool created by HashiCorp. It lets you define, provision, and manage cloud infrastructure using human-readable config files written in HCL (HashiCorp Configuration Language). Think of it as Git for your cloud — but with superpowers. I know it's kind of short introduction, let's look at a real life scenario to understand what it is and why we need it! Why Do We Actually Need Terraform? A Real-Life Scenario Let’s say you’re an ambitious DevOps engineer named Alice. One day your boss comes in hot: “Hey Alice! We need 3 EC2 instances on AWS, 2 on Azure, and an S3 bucket for backups. Oh — and don’t forget a VPC, IAM…

April 15, 2025 0comments 66hotness 0likes Geekcoding101 Read all
Newest Hotest Random
Newest Hotest Random
Golang Range Loop Reference - Why Your Loop Keeps Giving You the Same Pointer (and How to Fix It) Terraform Associate Exam: A Powerful Guide about How to Prepare It Terraform Meta Arguments Unlocked: Practical Patterns for Clean Infrastructure Code Mastering Terraform with AWS Guide Part 1: Launch Real AWS Infrastructure with VPC, IAM and EC2 ExternalName and LoadBalancer - Ultimate Kubernetes Tutorial Part 5 NodePort vs ClusterIP - Ultimate Kubernetes Tutorial Part 4
Mastering Terraform with AWS Guide Part 1: Launch Real AWS Infrastructure with VPC, IAM and EC2Terraform Meta Arguments Unlocked: Practical Patterns for Clean Infrastructure CodeTerraform Associate Exam: A Powerful Guide about How to Prepare ItGolang Range Loop Reference - Why Your Loop Keeps Giving You the Same Pointer (and How to Fix It)
Install Azure-Cli on Mac Ultimate Kubernetes Tutorial Part 3: A Streamlined Kubernetes cluster setup Transformers Demystified - Day 2 - Unlocking the Genius of Self-Attention and AI's Greatest Breakthrough Master Feature Scaling & Gradient Descent: Supervised Machine Learning – Day 7 Fine-Tuning Models: Unlocking the Extraordinary Potential of AI Diving into "Attention is All You Need": My Transformer Journey Begins!
Newest comment
Tag aggregation
notes cybersecurity Machine Learning AI security Transformer Daily.AI.Insight Supervised Machine Learning

COPYRIGHT © 2024 GeekCoding101. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang