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

Add project as datasource #152

Merged
merged 3 commits into from
Nov 1, 2024
Merged

Conversation

maveonair
Copy link
Member

This pull requests adds the project datasource.

Example

data "incus_project" "default" {
  name = "default"
}

output "project_config" {
  value = data.incus_project.default.config
}

resource "incus_instance" "d1" {
  project = data.incus_project.default.name
  image    = "images:debian/12"
  name     = "d1"
}

What's been done

  • Added project datasource
  • Added docs for project datasource
  • Improved profile documentation

@maveonair maveonair requested a review from stgraber November 1, 2024 15:48
Signed-off-by: Fabian Mettler <[email protected]>
Signed-off-by: Fabian Mettler <[email protected]>
@stgraber stgraber enabled auto-merge November 1, 2024 16:34
@stgraber stgraber merged commit 996ab67 into lxc:main Nov 1, 2024
8 of 10 checks passed
@maveonair maveonair deleted the project-datasource branch November 1, 2024 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants