Skip to content

Instantly share code, notes, and snippets.

@wwiill
Created March 1, 2019 01:02
Show Gist options
  • Select an option

  • Save wwiill/a4b6e2346754d550e148e08a284c0a6b to your computer and use it in GitHub Desktop.

Select an option

Save wwiill/a4b6e2346754d550e148e08a284c0a6b to your computer and use it in GitHub Desktop.
#!/bin/bash
KEY_ID=$1
UNENCRYPTED=$2
aws kms encrypt --key-id $KEY_ID --plaintext "$UNENCRYPTED" --query CiphertextBlob --output text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment