Overview

Available Constructs

Assume you want to store this data in AWS:

{
  "apiKey": "sk-1234567890abcdef",
  "database": {
    "user": "admin",
    "password": "P@ssw0rd!",
    "host": "db.example.com"
  },
  "tokens": [
    { "service": "github", "token": "ghp_abcd1234" },
    { "service": "aws", "token": "AKIAIOSFODNN7EXAMPLE" }
  ],
  "someOtherKey": "base64:VGhpcyBpcyBhIHNlY3JldCBrZXk="
}

It doesn't matter whether the file is json, yaml or dotenvcdk-sops-secrets handles all three, and binary data is supported with some limitations.