When you have multiple catalog items called the same thing (such as Agnostic Machine) in multiple projects, the may have different version associated/released to the catalog. It seems when using the following code:
data "vra_catalog_item" "this" {
name = "Agnostic Machine"
}
The provider selects the first catalog item it comes to that matches the name and not the one I was looking for. There is no way to filter the catalog item on the vra_catalog_item via a project so you can choose the right item. You can do this with templates (vra_blueprint), i.e. :
data "vra_project" "this" {
name = "Demo"
}
data "vra_blueprint" "this" {
name = "Agnostic Machine"
project_id = data.vra_project.this.id
}
A catalog item from another project may not have the same version released. Therefore, when creating the deployment and specifying a version, the deployment fails:
As this was for a demo, i ended up using the blueprint method, but this doesn't get the icon from the catalog item and its equivalent of deploying via cloud assembly not service broker.
References
N/A
Community Note
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Code of Conduct
This project has a Code of Conduct that all participants are expected to understand and follow:
Description
When you have multiple catalog items called the same thing (such as Agnostic Machine) in multiple projects, the may have different version associated/released to the catalog. It seems when using the following code:
The provider selects the first catalog item it comes to that matches the name and not the one I was looking for. There is no way to filter the catalog item on the vra_catalog_item via a project so you can choose the right item. You can do this with templates (vra_blueprint), i.e. :
A catalog item from another project may not have the same version released. Therefore, when creating the deployment and specifying a version, the deployment fails:
Describe alternatives you've considered
As this was for a demo, i ended up using the blueprint method, but this doesn't get the icon from the catalog item and its equivalent of deploying via cloud assembly not service broker.
References
N/A
Community Note