Awesome Go
Read post

Build a Terraform provider for your side project's API (it's smaller than you think)

Building a Terraform provider for a side project's API is more approachable than it seems. Using the Terraform Plugin Framework (not the older SDKv2), a provider is a Go module with three components: a provider type for configuration, resources implementing CRUD operations, and data sources for read-only lookups. Key challenges include handling state drift correctly in the Read function, managing sensitive values like one-time API keys, and implementing ImportState for existing resources. Publishing to the Terraform Registry requires a properly named repo, GoReleaser-built binaries, GPG signing, and registry registration. A working reference implementation is the open-source SMTPfast provider, which can be built in roughly a weekend for a v0 with two resources.

    #golang#terraform#iac
Aug 05•4m read time•From dev.to
Post cover image
Table of contents
Why botherThe stack in 2026: Plugin FrameworkThe parts that actually take timePublishing to the registryIs it worth it?
162 Impressions
Awesome Go's image
Awesome Go

Awego's platform is dedicated to providing insights and resources for developers and technology ent...

1.2K Followers

•

8.2K Upvotes

devopsdaily's user avatar
DevOps Daily
@devopsdaily
Joined May 29. 2025
60

The latest news, tutorials, and guides for DevOps professionals.

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard