» tfe_ssh_key

This resource represents an SSH key which includes a name and the SSH private key. An organization can have multiple SSH keys available.

» Example Usage

Basic usage:

resource "tfe_ssh_key" "test" {
  name         = "my-ssh-key-name"
  organization = "my-org-name"
  key          = "private-ssh-key"
}

» Argument Reference

The following arguments are supported:

  • name - (Required) Name to identify the SSH key.
  • organization - (Required) Name of the organization.
  • key - (Required) The text of the SSH private key.

» Attributes Reference

  • id The ID of the SSH key.

» Import

Because the Terraform Enterprise API does not return the private SSH key content, this resource cannot be imported.