Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ekristen/terraform-provider-pgp
Terraform Provider for PGP Actions
https://github.com/ekristen/terraform-provider-pgp
Last synced: about 2 months ago
JSON representation
Terraform Provider for PGP Actions
- Host: GitHub
- URL: https://github.com/ekristen/terraform-provider-pgp
- Owner: ekristen
- Created: 2021-10-06T18:33:16.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-11-08T00:13:46.000Z (about 2 months ago)
- Last Synced: 2024-11-08T01:25:03.347Z (about 2 months ago)
- Language: Go
- Size: 53.7 KB
- Stars: 12
- Watchers: 4
- Forks: 6
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terraform Provider PGP
**Warning:** Use of this provider will result in secrets being in terraform state in **PLAIN TEXT** (aka **NOT ENCRYPTED**). You've been warned.
There are use cases and situations where you need full access to all values generated within terraform, unfortunately there are some resources that force you to provide a PGP key and it will only encrypt and store those values, then manual commands must be run to decrypt.
This provider allows you to generate a PGP or use an existing one, from there it provides encrypt and decrypt data sources to allow you to get access to the data.
## Build provider
Run the following command to build the provider
```shell
$ go build -o terraform-provider-pgp
```## Local release build
```shell
$ go install github.com/goreleaser/goreleaser@latest
``````shell
$ make release
```You will find the releases in the `/dist` directory. You will need to rename the provider binary to `terraform-provider-gpg` and move the binary into [the appropriate subdirectory within the user plugins directory](https://learn.hashicorp.com/tutorials/terraform/provider-use?in=terraform/providers#install-hashicups-provider).
## Test sample configuration
First, build and install the provider.
```shell
$ make install
```Then, navigate to the `examples` directory.
```shell
$ cd examples
```Run the following command to initialize the workspace and apply the sample configuration.
```shell
$ terraform init && terraform apply
```**Note:** you might have to remove the `.terraform.lock.hcl` file.