https://github.com/bouk/terraform-provider-ejson
A Terraform provider that can decrypt ejson on-the-fly
https://github.com/bouk/terraform-provider-ejson
ejson terraform
Last synced: 25 days ago
JSON representation
A Terraform provider that can decrypt ejson on-the-fly
- Host: GitHub
- URL: https://github.com/bouk/terraform-provider-ejson
- Owner: bouk
- Created: 2020-12-16T16:17:11.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-05-27T12:18:00.000Z (about 4 years ago)
- Last Synced: 2025-01-23T01:11:22.201Z (over 1 year ago)
- Topics: ejson, terraform
- Language: Go
- Homepage:
- Size: 83 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Terraform Provider Ejson
Run the following command to build the provider
```shell
go build -o terraform-provider-ejson
```
## Example
```terraform
terraform {
required_providers {
ejson = {
version = "1.1.1"
source = "bouk/ejson"
}
}
}
provider "ejson" {
keydir = "keys" # Optional, defaults to $EJSON_KEYDIR or /opt/ejson/keys
}
data "ejson_file" "config" {
file = "secrets.ejson"
private_key = "12312..." # Optional, reads from keydir by default
}
```
`data.ejson_file.config` will contain a `data` attribute containing the decrypted JSON, and a `map` attribute with all the string key: values.