alicloud_bastionhost_host_share_keys

This data source provides the Bastionhost Host Share Keys of the current Alibaba Cloud user.

Example Usage

Basic Usage

data "alicloud_bastionhost_host_share_keys" "ids" {
  instance_id = "example_value"
  ids         = ["example_value-1", "example_value-2"]
}
output "bastionhost_host_share_key_id_1" {
  value = data.alicloud_bastionhost_host_share_keys.ids.keys.0.id
}

data "alicloud_bastionhost_host_share_keys" "nameRegex" {
  instance_id = "example_value"
  name_regex  = "^my-HostShareKey"
}
output "bastionhost_host_share_key_id_2" {
  value = data.alicloud_bastionhost_host_share_keys.nameRegex.keys.0.id
}

Argument Reference

The following arguments are supported:

Argument Reference

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