OpsLevel / terraform-provider-opslevel

Terraform provider for OpsLevel.com
https://registry.terraform.io/providers/OpsLevel/opslevel/latest/docs
MIT License
8 stars 5 forks source link

Add ability to get the dependencies and dependents of a given service via a datasource #345

Closed rocktavious closed 1 month ago

rocktavious commented 3 months ago

The question from the customer:

Is it possible for the Terraform data source for opslevel_service to surface the dependencies? This might be a feature request

Investigateion

Looks like opslevel-go already has the functionality we just need to make a singular datasource that can lookup the 2 things for a given service. We could potentially reuse the opslevel_service datasource to do this but this would ALWAYS add 2 additional API calls so if we do that we'd need a boolean on the resource optionally turn on those API calls.

AC