You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Import externally created resources into declared resources #81
In the real-world exist a lot of resources that have been created by other tools, and UIs.
Add functionality to nixops4 to make it easy to bring these under the management of nixops4 without first deleting them or doing risky manual state edits.
This may serve as a more general alternative to #80, and might be a good preparation for that or even a prerequisite.
Curious if this feature could allow for Read, but not Create, Update, Delete?
I'm thinking there could be benefit to gradually integrating existing infra to nixops in scenarios where we cannot/will not be able to fully have it managed by nixops.
Trying to contrive an example. Maybe our MX dns record is established outside of nixops, and it would be a lot of effort to have it managed by nixops, however I could still see a benefit to being able to read it and used in other resources.
In terraform, what you're describing would be modeled with a "data source", which is a lot like a resource but can only be read from, having no C/U/D operations.
Both use cases are valid, and I think both should be implemented.
importing for when you want NixOps4 to manage it, read-write
some sort of read only resource parameter for when you don't
Activity
t3dodson commentedon Dec 28, 2025
Curious if this feature could allow for Read, but not Create, Update, Delete?
I'm thinking there could be benefit to gradually integrating existing infra to nixops in scenarios where we cannot/will not be able to fully have it managed by nixops.
Trying to contrive an example. Maybe our MX dns record is established outside of nixops, and it would be a lot of effort to have it managed by nixops, however I could still see a benefit to being able to read it and used in other resources.
roberth commentedon Dec 28, 2025
In terraform, what you're describing would be modeled with a "data source", which is a lot like a resource but can only be read from, having no C/U/D operations.
Both use cases are valid, and I think both should be implemented.
I've opened #133 to discuss the latter solution.