Blog/Blog

NetBox Labs Terraform provider enters public preview

|
2 min
Authors
Mark Coleman
NetBox Labs Terraform provider enters public preview
Be the first to hear news and subscribe here.
Key links
Share

NetBox Labs today released a public preview of its Terraform provider. It brings NetBox into the same Terraform workflow your teams already use for cloud, network, and everything else.

Until now, Terraform users have relied on the community NetBox provider, and we thank Fabian Breckle and all the maintainers who built and sustain it. As more teams make NetBox part of their production pipelines, many need a provider backed by the company behind NetBox. This is the first time NetBox Labs has offered a Terraform provider.

Infrastructure as code has a blind spot: Terraform knows what it deployed, but it doesn’t know whether the IP address it just assigned was already taken or whether the rack it filled is the one your records say it is. Without a trusted system of record, every plan is a guess about the state of the world, and a fast pipeline only makes wrong guesses faster.

NetBox is that system of record. Now, with an official provider maintained by NetBox Labs and generated from the NetBox data model, Terraform can read from it, write to it, and allocate from it in the same plan that builds your infrastructure.

What the NetBox Labs Terraform provider public preview delivers

The new NetBox Labs Terraform provider delivers several advantages:

  • Manage NetBox as code: Every writable NetBox object type in NetBox 4.6 and 4.7 is managed in the same Terraform plan as the infrastructure it describes. That replaces handwritten API scripts and keeps NetBox in step with what you deploy.
  • Fewer pipeline steps: The provider claims the next free IP address, prefix, VLAN, or ASN in the step that creates the object, sets tags by name, and catches mistyped filters at plan time.
  • Vendor-backed: NetBox Labs maintains the provider, so it satisfies policies at organizations that require a vendor-maintained provider. A Terraform Registry partner listing is planned for general availability (GA).
  • Migration from the community provider: netbox-migrate moves a configuration and its state from the community provider’s 5.x or 6.0 releases without recreating anything in NetBox.

Try the NetBox Labs Terraform provider preview

The preview works with Community NetBox, NetBox Cloud, and NetBox Enterprise on NetBox 4.6 and 4.7, with Terraform or OpenTofu 1.12 or later (Terraform Search needs Terraform 1.14 or later). On NetBox 4.5 or earlier, first upgrade to NetBox 4.6 while still using the community provider. Plugin models aren’t covered yet. The provider is free and open source under the Apache 2.0 license.

Try the preview, migrate a workspace, and file what you find as issues in the provider’s GitHub repository.