Skip to content

[Feature Request]: Support "filter" clauses in the datasources #386

@abotau

Description

@abotau

What feature would you like to have in the provider?

Would it be possible to add support for "filter" clauses in the datasources like it is done in some datasource of the AWS provider

# Find the latest available AMI that is tagged with Component = web
data "aws_ami" "web" {
  filter {
    name   = "state"
    values = ["available"]
  }

  filter {
    name   = "tag:Component"
    values = ["web"]
  }

  most_recent = true
}

this example comes from the datasource official documentation : https://developer.hashicorp.com/terraform/language/data-sources#example

example, AWS AMI datasources arguments : https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ami#argument-reference

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions