Skip to content

A Terraform provider that can decrypt ejson on-the-fly

Notifications You must be signed in to change notification settings

bouk/terraform-provider-ejson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Provider Ejson

Run the following command to build the provider

go build -o terraform-provider-ejson

Example

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.

About

A Terraform provider that can decrypt ejson on-the-fly

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published