Skip to content

Filter data source (feature request) #182

@lhagemann

Description

@lhagemann

Terraform allows for the filtering of data sources: https://www.terraform.io/docs/configuration/data-sources.html

The baremetal provider does not support this feature.

$ terraform apply
1 error(s) occurred:

* data.baremetal_core_subnets.filter_fails: : invalid or unknown key: filter

Being able to limit the scope of the response from a data source would make the resulting information much more valuable.

Some of the underlying resources already support a version of filtering which is implemented in the data source resource, such as images. But others, such as subnets, do not.

A simple example demonstrating expected usage, which results in the error above, is attached.

filter_data_source.tf.txt

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions