This argument allows users to set the region from which the credstash KMS Key should be read separately from the region in which the credstash DynamoDB Table is stored. This allows credstash to be used with DynamoDB Global Tables with minimal AWS configuration.
Note that the KMS region can be specified for keys, list and delete, but is not used since KMS is not needed for those commands.
Saving the KMS Region
The KMS region can be saved by running credstash setup --save-kms-region REGION. This value is saved in ~/.credstash.
KMS Region Resolution Order
--kms-region command-line argument
Saved KMS region in ~/.credstash
If the KMS region is not explicitly specified, it takes the value of region, following the normal order of precedence:
--region command-line argument
AWS_DEFAULT_REGION environment variable
~/.aws/config
us-east-1 if no other region is specified
Library Usage
This PR adds a new keyword argument, kms_region, to getSecret, getAllSecrets, putSecret, and putSecretAutoVersion.
Resolves #257.
KMS Region
This PR adds a new top-level command-line argument,
--kms-region
.Basic Usage
This argument allows users to set the region from which the
credstash
KMS Key should be read separately from the region in which thecredstash
DynamoDB Table is stored. This allowscredstash
to be used with DynamoDB Global Tables with minimal AWS configuration.Note that the KMS region can be specified for
keys
,list
anddelete
, but is not used since KMS is not needed for those commands.Saving the KMS Region
The KMS region can be saved by running
credstash setup --save-kms-region REGION
. This value is saved in~/.credstash
.KMS Region Resolution Order
--kms-region
command-line argument~/.credstash
If the KMS region is not explicitly specified, it takes the value ofregion
, following the normal order of precedence:--region
command-line argumentAWS_DEFAULT_REGION
environment variable~/.aws/config
us-east-1
if no other region is specifiedLibrary Usage
This PR adds a new keyword argument,
kms_region
, togetSecret
,getAllSecrets
,putSecret
, andputSecretAutoVersion
.