alicloud_ens_key_pairs

This data source provides the Ens Key Pairs of the current Alibaba Cloud user.

Example Usage

Basic Usage

data "alicloud_ens_key_pairs" "nameRegex" {
  version    = "example_value"
  name_regex = "^my-KeyPair"
}
output "ens_key_pair_id_1" {
  value = data.alicloud_ens_key_pairs.nameRegex.pairs.0.id
}

Argument Reference

The following arguments are supported:

Argument Reference

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