Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support of environment variables for table and key alias #62

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add support of environment variables for the name of the table and th…
…e key alias
  • Loading branch information
Nassim Kacha committed Dec 6, 2016
commit fca2698e811b06ce8182b669800a192c1968aa7c
4 changes: 2 additions & 2 deletions cmd/unicreds/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ var (
region = app.Flag("region", "Configure the AWS region").Short('r').String()
profile = app.Flag("profile", "Configure the AWS profile").Short('p').String()

dynamoTable = app.Flag("table", "DynamoDB table.").Default("credential-store").Short('t').String()
alias = app.Flag("alias", "KMS key alias.").Default("alias/credstash").Short('k').String()
dynamoTable = app.Flag("table", "DynamoDB table.").Default("credential-store").OverrideDefaultFromEnvar("UNICREDS_TABLE").Short('t').String()
alias = app.Flag("alias", "KMS key alias.").Default("alias/credstash").OverrideDefaultFromEnvar("UNICREDS_ALIAS").Short('k').String()
encContext = encryptionContext(app.Flag("enc-context", "Add a key value pair to the encryption context.").Short('E'))

// commands
Expand Down