diff --git a/examples/github/easy-github-user-add-gpg-key/main.tf b/examples/github/easy-github-user-add-gpg-key/main.tf new file mode 100644 index 0000000..e0c81ed --- /dev/null +++ b/examples/github/easy-github-user-add-gpg-key/main.tf @@ -0,0 +1,3 @@ +resource "github_user_gpg_key" "userx" { + armored_public_key = "-----BEGIN PGP PUBLIC KEY BLOCK-----\n...\n-----END PGP PUBLIC KEY BLOCK-----" +} \ No newline at end of file diff --git a/examples/github/easy-github-user-add-gpg-key/providers.tf b/examples/github/easy-github-user-add-gpg-key/providers.tf new file mode 100644 index 0000000..4f606d6 --- /dev/null +++ b/examples/github/easy-github-user-add-gpg-key/providers.tf @@ -0,0 +1,3 @@ +provider "github" { + token = "your personal github token" #you can use variable or other safe ways +} \ No newline at end of file diff --git a/examples/github/easy-github-user-add-gpg-key/terraform.tf b/examples/github/easy-github-user-add-gpg-key/terraform.tf new file mode 100644 index 0000000..cf8d6c6 --- /dev/null +++ b/examples/github/easy-github-user-add-gpg-key/terraform.tf @@ -0,0 +1,10 @@ +# https://github.com/ssbostan/terraform-awesome + +terraform { + required_providers { + github = { + source = "integrations/github" + version = "~> 4.0" + } + } +} \ No newline at end of file