Created
November 27, 2019 17:19
-
-
Save cdimascio/900606ede06b0a173d9cceb57716f60f to your computer and use it in GitHub Desktop.
Install S3 credentials into Elasticsearch keystore
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
#!/bin/bash | |
./bin/elasticsearch-keystore create | |
echo 'XXX' | ./bin/elasticsearch-keystore add --stdin s3.client.default.access_key | |
echo 'XXX' | ./bin/elasticsearch-keystore add --stdin s3.client.default.secret_key |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this. Here's a variation that doesn't prompt when the store or keys already exist that you can blindly run at startup.