diff --git a/docs/data-sources/gpg_key.md b/docs/data-sources/gpg_key.md new file mode 100644 index 00000000..bdb7ebd0 --- /dev/null +++ b/docs/data-sources/gpg_key.md @@ -0,0 +1,28 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "env0_gpg_key Data Source - terraform-provider-env0" +subcategory: "" +description: |- + +--- + +# env0_gpg_key (Data Source) + + + + + + +## Schema + +### Optional + +- `id` (String) the id of the api key +- `name` (String) the name of the api key + +### Read-Only + +- `content` (String) the gpg public key block +- `key_id` (String) the gpg key id + + diff --git a/docs/resources/gpg_key.md b/docs/resources/gpg_key.md new file mode 100644 index 00000000..4cae6148 --- /dev/null +++ b/docs/resources/gpg_key.md @@ -0,0 +1,43 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "env0_gpg_key Resource - terraform-provider-env0" +subcategory: "" +description: |- + +--- + +# env0_gpg_key (Resource) + + + +## Example Usage + +```terraform +resource "env0_gpg_key" "example" { + name = "gpg-key-example" + key_id = "ABCDABCDABCDABCD" + content = "key block" +} +``` + + +## Schema + +### Required + +- `content` (String) the gpg public key block +- `key_id` (String) the gpg key id +- `name` (String) the gpg key name + +### Read-Only + +- `id` (String) The ID of this resource. + +## Import + +Import is supported using the following syntax: + +```shell +terraform import env0_gpg_key.by_id ddda7b30-6789-4d24-937c-22322754934e +terraform import env0_gpg_key.by_name gpg-key-name" +```