vmware / terraform-provider-vra

Terraform Provider for VMware Aria Automation
https://registry.terraform.io/providers/vmware/vra/
Mozilla Public License 2.0
103 stars 90 forks source link

Lookup data source vra_blueprint by id #434

Closed thomasinsel closed 1 year ago

thomasinsel commented 2 years ago

Code of Conduct

This project has a Code of Conduct that all participants are expected to understand and follow:

Description

It would be very helpful to be able to search for a blueprint by its id. For example, from the blueprint_id field of a vra_deployment.

However, it looks like the current implementation does not use the id argument as documented. I see in https://github.com/vmware/terraform-provider-vra/blob/main/vra/data_source_blueprint.go that it searches only by name, so if I specify an id I always get the error message:

Error: more than one blueprint found with the same name, try to narrow filter by project_id

Describe alternatives you've considered

References

Community Note