Data Source: aws_prometheus_workspaces

Provides the aliases, ARNs, and workspace IDs of Amazon Prometheus workspaces.

Example Usage

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"
}

Argument Reference

This data source supports the following arguments:

Attribute Reference

This data source exports the following attributes in addition to the arguments above: