The columns data source allows the columns of a dataset to be retrieved.
variable "dataset" {
type = string
}
# returns all columns
data "honeycombio_columns" "all" {
dataset = var.dataset
}
# only returns the columns starting with 'foo_'
data "honeycombio_columns" "foo" {
dataset = var.dataset
starts_with = "foo_"
}
The following arguments are supported:
dataset
- (Required) The dataset to retrieve the columns list fromstarts_with
- (Optional) Only return columns starting with the given value.In addition to all arguments above, the following attributes are exported:
names
- a list of all the column names found in the dataset