Created
November 17, 2017 02:53
-
-
Save emalloy/277f4d7cfd54e5a77c15d1326ab666ad to your computer and use it in GitHub Desktop.
kms_decrypt.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
_INPUT=$1 | |
cat $_INPUT \ | |
| aws kms decrypt \ | |
--ciphertext-blob fileb://<(cat -) \ | |
--output text \ | |
--query Plaintext \ | |
| base64 --decode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment