alicloud_key_pairs

This data source provides a list of key pairs in an Alibaba Cloud account according to the specified filters.

Example Usage

# Declare the data source
resource "alicloud_key_pair" "default" {
  key_name = "keyPairDatasource"
}
data "alicloud_key_pairs" "default" {
  name_regex = "${alicloud_key_pair.default.key_name}"
}

Argument Reference

The following arguments are supported:

The following attributes are exported in addition to the arguments listed above: