alicloud_ecp_key_pairs

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

Example Usage

Basic Usage

data "alicloud_ecp_key_pairs" "ids" {}
output "ecp_key_pair_id_1" {
  value = data.alicloud_ecp_key_pairs.ids.pairs.0.id
}

data "alicloud_ecp_key_pairs" "nameRegex" {
  name_regex = "^my-KeyPair"
}
output "ecp_key_pair_id_2" {
  value = data.alicloud_ecp_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: