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.
More information about the purpose of this file 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.
The v0.10.0
and previous releases 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
- Publish the artifacts with the following (minimal) command:
Referencing providers in Terraform¶
Example Terraform configuration using a provider referenced from the registry: