Skip to content

Instantly share code, notes, and snippets.

@Simonx123
Forked from Callonski/gcs_plugin_sa.sh
Created September 7, 2020 01:04
Show Gist options
  • Select an option

  • Save Simonx123/1b6c2940193337dade2a5c4e43455fbc to your computer and use it in GitHub Desktop.

Select an option

Save Simonx123/1b6c2940193337dade2a5c4e43455fbc to your computer and use it in GitHub Desktop.
####### PLUGIN, SERVICE-ACCOUNT AND RESTART ELASTICSEARCH ########
systemctl enable elasticsearch.service
cd /usr/share/elasticsearch
sudo ./bin/elasticsearch-plugin install repository-gcs -b
echo ${gcp_sa} | base64 -d > credentials.json
sudo ./bin/elasticsearch-keystore add-file gcs.client.default.credentials_file credentials.json -s
systemctl restart elasticsearch.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment