~/talk

How to Write a Modern Terraform Provider: Tools and Patterns

Talkat HashiTalks 2021 · 2021-02-17..02-18· [devops-and-delivery]
links:none on file
slides:none on file

Explains concrete patterns and SDK v2 features for building real Terraform providers: use context-aware CRUD so operations cancel on Ctrl‑C, return a read function to represent partial creates, surface problems with Diagnostics (warnings vs errors and attribute paths), and run providers under delve debugging and the SDK acceptance testing framework. Recommends a thin provider + fat generated API client, single marshalling layer, reuse schemas like tags, mark optional+computed attributes, and generate docs from code to keep examples and versions correct.

AI-written summary · about

  1. 0:00Introduction to Terraform providers
  2. 3:12What is Terraform explained
  3. 4:56Terraform provider ecosystem
  4. 6:41Modern provider tooling
  5. 9:46Context-aware CRUD functions
  6. 12:59Diagnostics for better errors
  7. 14:24Debugging Terraform providers
  8. 15:05Acceptance testing framework
  9. 16:10Marshalling resource data
  10. 17:12Read function for partial updates
  11. 19:02Optional and computed attributes
  12. 20:06Reusing common schemas
  13. 21:29Consistent resource structure
  14. 23:16API client design patterns
  15. 25:25Generating API clients
  16. 26:09Documentation best practices
  17. 27:56Automating releases with GoReleaser
~/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.