» github_user_gpg_key

Provides a GitHub user's GPG key resource.

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

» Example Usage

resource "github_user_gpg_key" "example" {
  armored_public_key = "-----BEGIN PGP PUBLIC KEY BLOCK-----\n...\n-----END PGP PUBLIC KEY BLOCK-----"
}

» Argument Reference

The following arguments are supported:

» Attributes Reference

The following attributes are exported:

  • id - The GitHub ID of the GPG key, e.g. 401586
  • key_id - The key ID of the GPG key, e.g. 3262EFF25BA0D270

» Import

GPG keys are not importable due to the fact that API does not return previously uploaded GPG key.