~/talk

Intermediate HCL: Configuration Languages in HCL2

Talkat HashiTalks 2020 · 2020-02-20..02-21· [devops-and-delivery]
links:none on file
slides:none on file

Argues HCL2 is a language for domain-specific configuration languages, not just a data format, showing a Go-based parser using the HCL and cty libraries, environment-backed variables (PS_ prefix loader), over a hundred Terraform functions available, and user-defined functions (a parametric random selector with error handling). Demonstrates partial decoding of HCL bodies to implement polymorphic blocks (pets → cats/dogs), enforces required fields and type safety, and shows the toy deployment manifest and pet demo compile and error clearly when misconfigured.

AI-written summary · about

  1. 0:00Introduction
  2. 3:46HCL vs Other Tools
  3. 5:30Shared Context
  4. 6:48Three Techniques
  5. 8:40Lisa Mona
  6. 8:50Example
  7. 10:50Code
  8. 12:30Variables
  9. 13:10Tie Functions
  10. 14:22Decoding
  11. 15:43Environment variables
  12. 17:10Building environment variables
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.