Closed ddelnano closed 3 years ago
When working with ACLs it would be helpful to be able to look up user accounts with a data source.
Once #94 is released, users will need to do the following when adding ACLs for a user account
resource "xenorchestra_acl" "acl" { subject = "c561e4ac-caa1-4a37-a74d-388e5bc50c52" object = data.xenorchestra_pool.pool.id action = "operator" }
Adding a xenorchestra_user data source would allow using a user's username to more easily look up the id of a user. This would transform the code above to the following.
xenorchestra_user
data "xenorchestra_user" "user" { username = "user" } resource "xenorchestra_acl" "acl" { subject = data.xenorchestra_user.user.id object = data.xenorchestra_pool.pool.id action = "operator" }
This will be available in the next provider release (v0.10)
When working with ACLs it would be helpful to be able to look up user accounts with a data source.
Once #94 is released, users will need to do the following when adding ACLs for a user account
Adding a
xenorchestra_user
data source would allow using a user's username to more easily look up the id of a user. This would transform the code above to the following.