Created
February 13, 2018 15:22
-
-
Save PetrGlad/a0c81d584762fe2f813e539742de6b12 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
aws kms encrypt \ | |
--key-id 'arn:aws:kms:eu-............' \ | |
--plaintext fileb://input-filename \ | |
--output text \ | |
--query CiphertextBlob \ | |
| base64 --decode > encrypted_filename | |
aws kms decrypt \ | |
--ciphertext-blob fileb://encrypted_filename \ | |
--query Plaintext \ | |
--output text \ | |
| base64 --decode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment