-
Notifications
You must be signed in to change notification settings - Fork 169
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 option to write the value
from prompt if value
is not provided
#360
Labels
Comments
It doesn't really address the request here, but passing a value of
|
Facing the same issues above, I just decided to write custom bash functions to do prompts properly: # write to parameter store
chamber_write_to_ssm() {
export CHAMBER_KMS_KEY_ALIAS=aws/ssm
local service_name=$1
local secret_key=$2
shift 2
echo -n "Enter secret value for $secret_key (input will be hidden): "
read -s secret_value
echo
chamber write "$service_name" "$secret_key" "$@" -- "$secret_value"
}
# write to secrets manager
chamber_write_to_smr() {
export CHAMBER_KMS_KEY_ALIAS=aws/secretsmanager
local service_name=$1
local secret_key=$2
shift 2
echo -n "Enter secret value for $secret_key (input will be hidden): "
read -s secret_value
echo
chamber write "$service_name" "$secret_key" -b secretsmanager "$@" -- "$secret_value"
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be nice to get a prompt if the
value
is omitted during awrite
operationThis would still work
If
value
is omitted, then it could promptThe text was updated successfully, but these errors were encountered: