npm install -g @znemz/aws-play
Expects KMS_ID to be available / exported
echo abcd | awsKmsEncrypt -e base64 -k alias/demo | awsKmsDecrypt -e base64
abcd
echo abcd | awsKmsEncrypt -e base64 -k alias/demo
AQICAHj/6a1KHdB7qaXDbeWQ9K48M0vQfukO9weGdqwlCJ2ehQE2GJx31AA8adTIcCOKmJf9AAAAYzBhBgkqhkiG9w0BBwagVDBSAgEAME0GCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQMltAgB55xMNmhaLR3AgEQgCAJVDr5cdtjELQwHbtzWbAwwWD/iTVWPpoD9qpnqW2iZg==%
go get github.com/nmccready/aws-play/aws/kms/encrypt
go get github.com/nmccready/aws-play/aws/kms/decrypt
$ echo abcd | encrypt -e base64 | decrypt -e base64
abcd