You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
}
Thanks for this suggestion.
It's not exactly what you ask for but similar: For each data source we have a _list data source where you can match against different attributes with regex. See this example.
As far as I can tell, fulfills the same purpose as the filter clauses. Do you agree or am I missing something?
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
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
The text was updated successfully, but these errors were encountered: