Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save davidcueva/c97501bef8f7f990a14a0f239fb422d4 to your computer and use it in GitHub Desktop.
Save davidcueva/c97501bef8f7f990a14a0f239fb422d4 to your computer and use it in GitHub Desktop.
echo "mysql-root-password-99" | \
gcloud kms encrypt \
--location=global \
--keyring=my-keyring \
--key=my-key \
--plaintext-file=- \
--ciphertext-file=mysql-root-password.encrypted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment