https://github.com/olivr/terraform-provider-gpg
Terraform provider to generate a PGP key pair just like GPG would 🔐
https://github.com/olivr/terraform-provider-gpg
gopenpgp gpg openpgp pgp terraform terraform-provider
Last synced: 11 months ago
JSON representation
Terraform provider to generate a PGP key pair just like GPG would 🔐
- Host: GitHub
- URL: https://github.com/olivr/terraform-provider-gpg
- Owner: Olivr
- License: mpl-2.0
- Created: 2021-08-09T16:38:43.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-03-03T03:59:41.000Z (over 3 years ago)
- Last Synced: 2025-04-01T12:03:55.074Z (about 1 year ago)
- Topics: gopenpgp, gpg, openpgp, pgp, terraform, terraform-provider
- Language: Go
- Homepage:
- Size: 160 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# GPG Terraform Provider
Terraform provider to generate a PGP key pair just like GPG would 🔐. Using [GopenPGP](https://gopenpgp.org) under the hood.
## Using the provider
View the documentation on [Terraform registry](https://registry.terraform.io/providers/Olivr/gpg/latest/docs) or in the [docs folder](docs)
```hcl
terraform {
required_providers {
gpg = {
source = "Olivr/gpg"
}
}
}
resource "gpg_private_key" "key" {
name = "John Doe"
email = "john@doe.com"
}
```
## Contributing
If you wish to work on the provider, you'll need:
- [Terraform](https://www.terraform.io/downloads.html) >= 1.0.x
- [Go](https://golang.org/doc/install) >= 1.17
To compile the provider, run `make`. This will build the provider and put the provider binary in the `$GOPATH/bin` directory.
Add the local build to your local Terraform plugins so you can test it in your project context.
```sh
mkdir -p ~/.terraform.d/plugins/registry.terraform.io/Olivr/gpg/0.0.1/$(go env GOOS)_$(go env GOARCH)
ln -s $(go env GOPATH)/bin/terraform-provider-gpg ~/.terraform.d/plugins/registry.terraform.io/Olivr/gpg/0.0.1/$(go env GOOS)_$(go env GOARCH)/terraform-provider-gpg
```
In order to run the full suite of Acceptance tests, run `make test`.
To generate or update documentation, run `make doc`.
## Maintaining
To release, just push a new tag respecting Semver:
```sh
VERSION=v0.1.0
git tag $VERSION main
git push origin $VERSION
```