/

Amazon SSM Parameter Store

Secure Credentials Using Amazon SSM Parameter Store


SchemaHero can retrieve database credentials from an AWS SSM Parameter Store. SchemaHero can read encrypted or plain text secrets that contain a Database connection URI.

apiVersion: databases.schemahero.io/v1alpha4
kind: Database
metadata:
  name: my-db
  namespace: namespace
spec:
  connection:
    postgres:
      uri:
        valueFrom:
          ssm:
            name: "/schemahero/key-name"
            withDecryption: true
            region: "us-east-1"
            accessKeyId:
              value: "---"
            secretAccessKey:
              valueFrom:
                secretKeyRef:
                  name: "aws"
                  key: "secretKeyRef"
namedescription
nameThe path to the key in the Parameter Store
withDecryptionA boolean indicating if the value is encrypted
regionThe AWS region
accessKeyIdThe AWS Access Key ID (optional, see below). Supports value and valueFrom
secretAccessKeyThe AWS Secret Access Key (optional, see below). Supports value and valueFrom

Access Key ID and Secret Access Key

If the accessKeyId and secretAccessKey values are both empty, SchemaHero will use the instance role. This is a secure way to configure AWS credentials on instances.

Edit on GitHub