diff --git a/.circleci/config.yml b/.circleci/config.yml index 624db9ecafd..9fec9c6370a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -87,6 +87,14 @@ jobs: sudo apt-get update && sudo apt-get install -y /home/ubuntu/influxdb.deb sudo service influxdb start EOF + ssh -o "StrictHostKeyChecking=no" ubuntu@$ec2_ip \<< EOF + sudo service influxdb stop + sudo sed -i 's/ # https-enabled = false/ https-enabled = true/' /etc/influxdb/influxdb.conf + sudo sed -i 's/ # https-certificate = "/etc/ssl/influxdb.pem"/ https-certificate = "/etc/ssl/influxdb.crt"/' /etc/influxdb/influxdb.conf + sudo sed -i 's/ # https-private-key = ""/ https-private-key = "/etc/ssl/influxdb.key"/' /etc/influxdb/influxdb.conf + sudo openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/ssl/influxdb.key -out /etc/ssl/influxdb.crt -days 365 -subj /C=US/ST=CA/L=sanfrancisco/O=influxdata/OU=edgeteam/CN=localhost + sudo chown influxdb:influxdb /etc/ssl/influxdb.* + sudo service influxdb start - run: name: Terraform destroy command: |