Skip to content

Instantly share code, notes, and snippets.

@wwiill
Created March 1, 2019 01:03
Show Gist options
  • Save wwiill/ee8ca6d8d1b956b9c852fd4be028ace9 to your computer and use it in GitHub Desktop.
Save wwiill/ee8ca6d8d1b956b9c852fd4be028ace9 to your computer and use it in GitHub Desktop.
#!/bin/bash
ENCRYPTED_BIN_FILE=$1
aws kms decrypt --ciphertext-blob fileb://$ENCRYPTED_BIN_FILE --query Plaintext --output text | base64 --decode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment