From 6262e76b9c44849f9d21c6c975de8fb02992df90 Mon Sep 17 00:00:00 2001 From: amirnegah Date: Tue, 5 Jul 2022 11:18:27 +0430 Subject: [PATCH] add example:easy-github-user-add-gpg-key --- examples/github/easy-github-user-add-gpg-key/main.tf | 3 +++ .../github/easy-github-user-add-gpg-key/providers.tf | 3 +++ .../github/easy-github-user-add-gpg-key/terraform.tf | 10 ++++++++++ 3 files changed, 16 insertions(+) create mode 100644 examples/github/easy-github-user-add-gpg-key/main.tf create mode 100644 examples/github/easy-github-user-add-gpg-key/providers.tf create mode 100644 examples/github/easy-github-user-add-gpg-key/terraform.tf 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