|
| 1 | +--- |
| 2 | +layout: "tfe" |
| 3 | +page_title: "Terraform Enterprise: tfe_registry_gpg_key" |
| 4 | +description: |- |
| 5 | + Manages private registry GPG keys. |
| 6 | +--- |
| 7 | + |
| 8 | + |
| 9 | +<!-- Please do not edit this file, it is generated. --> |
| 10 | +# tfe_registry_gpg_key |
| 11 | + |
| 12 | +Manages a public key of the GPG key pair used to sign releases of private providers in the private registry. |
| 13 | + |
| 14 | +The provided GPG key must be ASCII-armored, i.e. starting with: |
| 15 | +"`-----BEGIN PGP PUBLIC KEY BLOCK-----\n\n...`". |
| 16 | + |
| 17 | +## Example Usage |
| 18 | + |
| 19 | +```python |
| 20 | +# DO NOT EDIT. Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug |
| 21 | +from constructs import Construct |
| 22 | +from cdktf import Fn, TerraformStack |
| 23 | +# |
| 24 | +# Provider bindings are generated by running `cdktf get`. |
| 25 | +# See https://cdk.tf/provider-generation for more details. |
| 26 | +# |
| 27 | +from imports.tfe. import RegistryGpgKey |
| 28 | +class MyConvertedCode(TerraformStack): |
| 29 | + def __init__(self, scope, name): |
| 30 | + super().__init__(scope, name) |
| 31 | + RegistryGpgKey(self, "example", |
| 32 | + ascii_armor=Fn.file("my-public-key.asc"), |
| 33 | + organization="my-org-name" |
| 34 | + ) |
| 35 | +``` |
| 36 | + |
| 37 | +## Argument Reference |
| 38 | + |
| 39 | +The following arguments are supported: |
| 40 | + |
| 41 | +* `ascii_armor` - (Required) ASCII-armored representation of the GPG key. |
| 42 | +* `organization` - (Optional) Name of the organization. If omitted, organization must be defined in the provider config. |
| 43 | + |
| 44 | +## Attributes Reference |
| 45 | + |
| 46 | +* `id` - ID of the GPG key. |
| 47 | +* `created_at` - The time when the GPG key was created. |
| 48 | +* `updated_at` - The time when the GPG key was last updated. |
| 49 | + |
| 50 | +## Import |
| 51 | + |
| 52 | +Keys can be imported; use `<ORGANIZATION NAME>/<KEY ID>` as the import ID. For |
| 53 | +example: |
| 54 | + |
| 55 | +```shell |
| 56 | +terraform import tfe_registry_gpg_key.example my-org-name/34365D9472D7468F |
| 57 | +``` |
| 58 | + |
| 59 | +<!-- cache-key: cdktf-0.19.0 input-730b5a234f42b288032d37e5a9ddea76c748a891a6ac2df444a35f192edf1bc4 --> |
0 commit comments