Discover

Curated articles from sources across the web

1151 articles from 16 sources
Terragrunt remote_state and generate blocks
D
DEV Community · Technology

Terragrunt remote_state and generate blocks

remote_state Defines the backend once in root.hcl - Terragrunt auto-generates the backend config for every unit that includes it. # root.hcl remote_state { backend = "s3" config = { bucket = "my-tf-state" key = "${path_relative_to_include()}/terraform.tfs...

Bartłomiej Danek
Read
What is Terragrunt and why you need it
D
DEV Community · Technology

What is Terragrunt and why you need it

the multi-env problem With plain Terraform, managing multiple environments means duplicating config - same modules, different variable files, same backend boilerplate repeated everywhere. environments/ ├── dev/ │ ├── main.tf # copy │ ├── variables.tf # copy │ └── backend...

Bartłomiej Danek
Read
See Every AI Tool Call: MCP Tool Call Metrics in Real Time
D
DEV Community · Technology

See Every AI Tool Call: MCP Tool Call Metrics in Real Time

Your AI agent just made 47 tool calls. How much did that cost? If you answered "uh... no idea," you're not alone. Most developers building with the MCP Tools are flying blind when it comes to observability. Your AI client talks to MCP servers, tools get called, tokens get consumed, and your bill qu...

Shriya Chauhan
Read
Terraform data sources
D
DEV Community · Technology

Terraform data sources

data sources Data sources let you read existing infrastructure without managing it - useful for referencing resources created outside Terraform or in another state file. data "aws_vpc" "main" { filter { name = "tag:Name" values = ["main"] } } resource "aws_subnet" "app"...

Bartłomiej Danek
Read
Every AI Coding CLI in 2026: The Complete Map (30+ Tools Compared)
D
DEV Community · Technology

Every AI Coding CLI in 2026: The Complete Map (30+ Tools Compared)

A sequel to my most-read post. Six months later, the landscape exploded. Here's every tool that matters, what it costs, and what it actually does. The AI coding tool market went from "a few options" to "overwhelming" in about six months. New CLIs weekly. Pricing wars. Open-source alternatives riv...

David Van Assche (S.L)
Read
Terragrunt run-all
D
DEV Community · Technology

Terragrunt run-all

run-all Runs a Terraform command across all units in the current directory tree, respecting dependency order. cd environments/prod terragrunt run-all plan terragrunt run-all apply terragrunt run-all destroy # reverse order dependency-aware ordering environments/pr...

Bartłomiej Danek
Read
Terraform S3 backend with state locking
D
DEV Community · Technology

Terraform S3 backend with state locking

S3 backend with state locking S3 stores the state file, DynamoDB handles locking - prevents two apply runs from corrupting state simultaneously. setup terraform { backend "s3" { bucket = "my-tf-state" key = "prod/terraform.tfstate" region...

Bartłomiej Danek
Read
Parsing phpinfo() in Pure PHP — or, How to Diff Two Containers
D
DEV Community · Technology

Parsing phpinfo() in Pure PHP — or, How to Diff Two Containers

Parsing phpinfo() in Pure PHP — or, How to Diff Two Containers phpinfo() is the most-used PHP debugging tool on earth, and its output format is hostile to every reasonable thing you'd want to do with it. This is a small CLI that parses it into JSON so you can jq it, grep it, and — the re...

SEN LLC
Read
Why Your Kubernetes Pod Keeps Getting Killed — And It's Not an OOMKill
D
DEV Community · Technology

Why Your Kubernetes Pod Keeps Getting Killed — And It's Not an OOMKill

A real-world debugging guide: from mysterious pod terminations to discovering a hidden kernel memory leak consuming 55% of node RAM. The Incident It was a regular morning when we noticed something off. One of our production services — running on an EKS cluster — had been terminated an...

Shreyans Sonthalia
Read
Regex That Actually Works (Copy-Paste Ready Examples)
D
DEV Community · Technology

Regex That Actually Works (Copy-Paste Ready Examples)

You paste a regex. It doesn’t work. You change one character. Now it works. You have no idea why. At some point you just accept it. Regex is not something you fully understand. It’s something you negotiate with. Typical workflow: google "regex email" copy something scary-looking pa...

Andrew Rozumny
Read
We weren’t slow at fixing bugs — we just didn’t understand them
D
DEV Community · Technology

We weren’t slow at fixing bugs — we just didn’t understand them

Most bug reports are useless. So I built this. I used to think building an AI customer support chatbot would help reduce bugs. The idea was simple: if users could report issues easily through chat, we wouldn’t miss anything. And at first, it actually worked. We started receiving bug repo...

Dat Nguyen
Read
How to Prevent Prompt Injection: Why Pre-LLM Sanitization Matters
D
DEV Community · Technology

How to Prevent Prompt Injection: Why Pre-LLM Sanitization Matters

TL;DR — Prompt Injection Prevention in LLM Applications: Examples and Fixes Prompt injection isn't a model problem — it's an input validation problem. LLMs don't separate instructions from data. Your code has to. Pre-LLM Sanitization is the practice of filtering, validating, and transfor...

Natasha Joshi
Read
Password Generation Is About Entropy, Not Randomness
D
DEV Community · Technology

Password Generation Is About Entropy, Not Randomness

Password Generation Is About Entropy, Not Randomness I built pwgen-rs, a small Rust CLI that generates passwords in three modes and reports the bit-count of entropy for every one. Writing it forced me to answer a question I had been handwaving for years: what does "a strong password" act...

SEN LLC
Read
SMIL Animations in SVG: A Step-by-Step Guide Using a Real Wordmark
D
DEV Community · Technology

SMIL Animations in SVG: A Step-by-Step Guide Using a Real Wordmark

What is SMIL? SMIL stands for Synchronized Multimedia Integration Language. It is the W3C standard baked directly into SVG that lets you animate shapes, paths, transforms, colours, and more — zero JavaScript, zero CSS, zero external libraries required. The browser does all the work natively inside...

angeloscle
Read
How to integrate DeepSeek R1 into your React app
D
DEV Community · Technology

How to integrate DeepSeek R1 into your React app

Integrating DeepSeek R1 into Your React Application: A Comprehensive Technical Guide DeepSeek R1 represents a significant leap in AI-powered search capabilities, offering semantic understanding, vector search, and hybrid ranking. This tutorial will walk you through integrating DeepSeek R1...

Apollo
Read
Understanding DDL and DML SQL concepts
D
DEV Community · Technology

Understanding DDL and DML SQL concepts

1. INTRODUCTION This article will cover an introduction to SQL concepts SQL (Structured Query Language) is a standard language that is used to communicate with relational databases. It is used to store, retrieve, manipulate, and manage data that is organised in tables. Core concepts in S...

Davy Baraka
Read
Fix Supabase Auth Session Not Persisting After Refresh
D
DEV Community · Technology

Fix Supabase Auth Session Not Persisting After Refresh

Fix Supabase Auth Session Not Persisting After Refresh Fix Supabase Auth Session Not Persisting After Refresh Next.js 14 Supabase auth sessions mysteriously disappearing after page refresh is one of the most frustrating issues indie developers face when building Next.js applica...

Mahdi BEN RHOUMA
Read

Reading List