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:

Import

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