Terraform data source for managing an AWS RDS (Relational Database) Clusters.
data "aws_rds_clusters" "example" {
filter {
name = "engine"
values = ["aurora-postgresql"]
}
}
The following arguments are optional:
filter
- (Optional) Configuration block(s) for filtering. Detailed below.The filter
configuration block supports the following arguments:
name
- (Required) Name of the filter field. Valid values can be found in the RDS DescribeDBClusters API Reference.values
- (Required) Set of values that are accepted for the given filter field. Results will be selected if any given value matches.This data source exports the following attributes in addition to the arguments above:
cluster_arns
- Set of cluster ARNs of the matched RDS clusters.cluster_identifiers
- Set of ARNs of cluster identifiers of the matched RDS clusters.