dynamodbkeystore

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2021 License: BSD-3-Clause Imports: 11 Imported by: 0

README

DynamoDB KeyStore

Testing

Environment Variables
DYDB_AWS_REGION=us-east-1
DYDB_TABLE_NAME=test_encryption_keys
AWS_ACCESS_KEY_ID=<insert key>
AWS_SECRET_ACCESS_KEY=<insert secret>
Create Table
aws dynamodb create-table \
  --table-name test_encryption_keys \
  --attribute-definitions AttributeName=SubjectID,AttributeType=S \
  --key-schema AttributeName=SubjectID,KeyType=HASH \
  --provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 \
List Tables
aws dynamodb list-tables
Scan Items
aws dynamodb scan --table-name test_encryption_keys

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config *Config) (*dynamoDBKeyStore, error)

Types

type Config

type Config struct {
	TableName       string
	AWSRegion       string
	AccessKeyID     string
	SecretAccessKey string
}

func NewConfigFromEnvironment

func NewConfigFromEnvironment() (*Config, error)

NewConfigFromEnvironment loads a DynamoDB config from environment variables.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL