terraform-provider-stackitp.../docs/data-sources/key_pair.md
2025-03-26 09:23:25 +01:00

1,003 B

page_title subcategory description
stackit_key_pair Data Source - stackit Key pair resource schema. Must have a region specified in the provider configuration.

stackit_key_pair (Data Source)

Key pair resource schema. Must have a region specified in the provider configuration.

Example Usage

data "stackit_key_pair" "example" {
  name = "example-key-pair-name"
}

Schema

Required

  • name (String) The name of the SSH key pair.

Read-Only

  • fingerprint (String) The fingerprint of the public SSH key.
  • id (String) Terraform's internal resource ID. It takes the value of the key pair "name".
  • labels (Map of String) Labels are key-value string pairs which can be attached to a resource container.
  • public_key (String) A string representation of the public SSH key. E.g., ssh-rsa <key_data> or ssh-ed25519 <key-data>.