This resource represents an SSH key which includes a name and the SSH private key. An organization can have multiple SSH keys available.
Basic usage:
resource "tfe_ssh_key" "test" {
name = "my-ssh-key-name"
organization = "my-org-name"
key = "private-ssh-key"
}
The following arguments are supported:
name
- (Required) Name to identify the SSH key.organization
- (Optional) Name of the organization. If omitted, organization must be defined in the provider config.key
- (Required) The text of the SSH private key.id
The ID of the SSH key.Because the Terraform Enterprise API does not return the private SSH key content, this resource cannot be imported.