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
The current behavior of providing filter criteria on a data source and getting a results object with (potentially) multiple results is cumbersome and actually problematic in situations where we only want a single result back yet no way to validate that.
It would be great if there were singular and plural data sources that returned a single object or an array of objects, respectively.
At that point, rather than the object being returned in a "results" sub-object, the attributes should be accessible from the top level.
It would be similar to how aws_security_group and aws_security_groups within the AWS Terraform provider operates today.
The current behavior of providing filter criteria on a data source and getting a
results
object with (potentially) multiple results is cumbersome and actually problematic in situations where we only want a single result back yet no way to validate that.It would be great if there were singular and plural data sources that returned a single object or an array of objects, respectively.
At that point, rather than the object being returned in a "results" sub-object, the attributes should be accessible from the top level.
It would be similar to how
aws_security_group
andaws_security_groups
within the AWS Terraform provider operates today.https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/security_group
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/security_groups
The text was updated successfully, but these errors were encountered: