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

ibm_resource_instance: unable to list instances by service name or by service type #5899

Open
sean-freeman opened this issue Dec 30, 2024 · 0 comments
Labels
enhancement service/Resource Management Issues related to Resource Manager or Resource controller Issues

Comments

@sean-freeman
Copy link

sean-freeman commented Dec 30, 2024

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

Description

API permits list resource listances, for example:

  • ibmcloud resource service-instances --service-name dns-svcs --type service_instance
  • ibmcloud resource service-instances --type resource_instance
  • ibmcloud resource service-instances --all-pages

However, Terraform Data Source ibm_resource_instance enforces with error message: one of 'identifier,name' must be specified

Alternatively, there should be a plural equivilant ibm_resource_instances which will return a list for given Service Name or Service Type (i.e. service_instance, resource_instance, platform_service_instance, composite_instance, container-registry_instance) ; similar to functionality of various data source within the Terraform Provider, such as ibm_is_subnets (list all subnets within a region).

New or Affected Resource(s)

  • ibm_resource_instance
@github-actions github-actions bot added the service/Resource Management Issues related to Resource Manager or Resource controller Issues label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement service/Resource Management Issues related to Resource Manager or Resource controller Issues
Projects
None yet
Development

No branches or pull requests

1 participant