Departure from the SDK and Plugin Framework: Let’s Add Some Rust to Tofu
Talkat OpenTofu Day Europe 2024 · on Tuesday, 2024-03-19· at 11:05· Pavilion 7 | Level 7.3 | Room E05 - E06·
summary
Demonstrates a working approach to replace Go-only SDKs by implementing a Rust plugin framework that speaks Terraform/Tofu’s gRPC + mTLS meta-protocol, handles protobuf plus JSON and MessagePack dynamic values, and supports previously unsupported features like map blocks. Shows a sample provider (null-like resource) implemented in Rust, a GitHub Actions pipeline that builds static binaries and fakes tf-plugin-docs, and a release layout published via GitHub Releases/GitHub Pages that works with Terraform and OpenTofu.
AI-written summary · about
chapters (6)
- 0:00The journey to Rust
- 5:16Understanding TF internals
- 10:05Building a Rust framework
- 17:28Publishing the provider
- 20:09Conclusion and future work
- 21:35Q&A session








