Home > OS >  Can elasticsearch-setup-passwords be auto-filled with a bash script?
Can elasticsearch-setup-passwords be auto-filled with a bash script?

Time:06-04

I have an ElasticSearch and Kibana server running on a single EC2 instance which was setup using a bash script. At the moment of loading credentials I used elasticsearch-setup-passwords tool which is interactive, so I had to manually add credentials. I know I could have used the parameter 'auto' but I need to used the credentials specified in my bash file so that option does not work as it will load random credentials. Is there a way to automate it with bash?

CodePudding user response:

as Fravadona mentioned above, take a look at https://www.elastic.co/guide/en/elasticsearch/reference/8.2/setup-passwords.html#setup-passwords-parameters

  • Related