Provides the aliases, ARNs, and workspace IDs of Amazon Prometheus workspaces.
The following example returns all of the workspaces in a region:
data "aws_prometheus_workspaces" "example" {}
The following example filters the workspaces by alias. Only the workspaces with
aliases that begin with the value of alias_prefix
will be returned:
data "aws_prometheus_workspaces" "example" {
alias_prefix = "example"
}
This data source supports the following arguments:
alias_prefix
- (Optional) Limits results to workspaces with aliases that begin with this value.This data source exports the following attributes in addition to the arguments above:
aliases
- List of aliases of the matched Prometheus workspaces.arns
- List of ARNs of the matched Prometheus workspaces.workspace_ids
- List of workspace IDs of the matched Prometheus workspaces.