An open API service indexing awesome lists of open source software.

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

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.