Skip to content

Commit

Permalink
add support of environment variables for the name of the table and th…
Browse files Browse the repository at this point in the history
…e key alias
  • Loading branch information
Nassim Kacha committed Dec 6, 2016
1 parent 70a80c0 commit fca2698
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit fca2698

Please sign in to comment.