Publish Providers¶
For general information on how to build and publish providers for Terraform see the official documentation.
GPG Public Keys¶
The boring-registry expects a file named signing-keys.json to be placed under the <namespace> level in the storage backend layout.
More information about the purpose of the signing-keys.json can be found in the Provider Registry Protocol.
The file should have the following format:
{
"gpg_public_keys": [
{
"key_id": "51852D87348FFC4C",
"ascii_armor": "-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG v1\n..."
}
]
}
Multiple public keys are supported by extending the gpg_public_keys array.
Releases older than v0.11.0 of the boring-registry only supported a single signing key in the following format:
{
"key_id": "51852D87348FFC4C",
"ascii_armor": "-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG v1\n..."
}
Publishing providers with the CLI¶
- Manually prepare the provider release artifacts according to the documentation from hashicorp.
The working directory should contain files similar to the following example:
- Publish the artifacts with the following (minimal) command:
Referencing providers in Terraform¶
Example Terraform configuration using a provider referenced from the registry: