Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Data sources #506

Open
jsimpso opened this issue Aug 7, 2024 · 0 comments
Open

Feature request: Data sources #506

jsimpso opened this issue Aug 7, 2024 · 0 comments

Comments

@jsimpso
Copy link
Contributor

jsimpso commented Aug 7, 2024

It would be great if we could use the provider to reference existing resources as data sources, e.g. referencing a network by name to have another resource act on its IPv4 range:

data "lxd_network" "my_net" {
  name     = "my-net"
  project  = "my-project"
}

resource "example" "example" {
  ip_range = data.lxd_network.my_net.ipv4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants