🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

DevOps Beginner

What is Environment Variable?

A dynamic value stored outside the application code that configures behavior without hardcoding sensitive or environment-specific data.

Environment variables store configuration that changes between environments (development, staging, production). Common examples include DATABASE_URL, API_KEY, and DEBUG_MODE.

They keep secrets out of source code, following the twelve-factor app methodology. Tools like .env files, Docker environment settings, and cloud provider secret managers handle environment variable management.

Related Terms

Feature Flag
A technique that allows enabling or disabling features in production without deploying new code, enabling safe rollouts and A/B testing.
Runbook
A documented set of standardized procedures for handling routine operations and incident response in production systems.
Kubernetes ConfigMap
A Kubernetes object that stores non-sensitive configuration data as key-value pairs, injected into pods as environment variables or files.
ELK Stack
A popular log management platform combining Elasticsearch (search), Logstash (processing), and Kibana (visualization).
Infrastructure Drift
The divergence between the actual state of infrastructure and its defined desired state, caused by manual changes or untracked modifications.
Error Budget
The acceptable amount of unreliability allowed for a service, calculated as 100% minus the Service Level Objective.
View All DevOps Terms →