github_user_ssh_key

Provides a GitHub user's SSH key resource.

This resource allows you to add/remove SSH keys from your user account.

Example Usage

resource "github_user_ssh_key" "example" {
  title = "example title"
  key   = file("~/.ssh/id_rsa.pub")
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

SSH keys can be imported using their ID e.g.

$ terraform import github_user_ssh_key.example 1234567