Provides a GitHub user's SSH key resource.
This resource allows you to add/remove SSH keys from your user account.
resource "github_user_ssh_key" "example" {
title = "example title"
key = file("~/.ssh/id_rsa.pub")
}
The following arguments are supported:
title
- (Required) A descriptive name for the new key. e.g. Personal MacBook Air
key
- (Required) The public SSH key to add to your GitHub account.The following attributes are exported:
id
- The ID of the SSH keyurl
- The URL of the SSH keySSH keys can be imported using their ID e.g.
$ terraform import github_user_ssh_key.example 1234567