interview-prep
locals {
  common_tags = {
    Environment = var.environment
    ManagedBy   = "terraform"
  }
  
  bucket_name = "${var.project}-${var.environment}-logs"
}

Locals are computed values you can reference as local.common_tags. Use them to avoid repetition or to compose values from multiple variables.

My notes