joneshf / terraform-provider-openwrt

A Terraform provider for OpenWrt using LuCI's JSON-RPC API
https://registry.terraform.io/providers/joneshf/openwrt
Mozilla Public License 2.0
33 stars 8 forks source link

Combine Data Source and Resource files #95

Closed joneshf closed 1 year ago

joneshf commented 1 year ago

We don't have to split our code base just because the Terraform framework can't figure out how to only require one implementation to be used in two ways. We combine this stuff into a single file because conceptually a Data Source is just a Resource that cannot be created, updated, or deleted. Conversly, a Resource is a Data Source that can also be created, updated, and deleted. Either way, we don't need extra files for the sake of extra files.