» alicloud_alikakfa_consumer_groups
This data source provides a list of ALIKAFKA Consumer Groups in an Alibaba Cloud account according to the specified filters.
NOTE: Available in 1.56.0+
» Example Usage
data "alicloud_alikafka_consumer_groups" "consumer_groups_ds" {
instance_id = "xxx"
consumer_id_regex = "CID-alikafkaGroupDatasourceName"
output_file = "consumerGroups.txt"
}
output "first_group_name" {
value = "${data.alicloud_alikafka_consumer_groups.consumer_groups_ds.consumer_ids.0}"
}
» Argument Reference
The following arguments are supported:
instance_id
- (Required) ID of the ALIKAFKA Instance that owns the consumer groups.consumer_id_regex
- (Optional) A regex string to filter results by the consumer group id.output_file
- (Optional) File name where to save data source results (after runningterraform plan
).
» Attributes Reference
The following attributes are exported in addition to the arguments listed above:
consumer_ids
- A list of consumer group ids.