I was trying to run influxdb_2.0.0-alpha.20 as a service, so every time i lunch a new instance of EC2 with terraform have provisioned influxdb
[Unit]
Description=InfluxDB 2.0 service file.
Documentation=https://v2.docs.influxdata.com/v2.0/get-started/
After=network-online.target
[Service]
User=influxdb
Group=influxdb
ExecStart=/usr/local/bin/influxd
Restart=on-failure
[Install]
WantedBy=multi-user.target
apart from after have running that service i would use cli command to complete the auth process
influx setup
-b {bucket} \
-o {org}
-u {user}\
-p {pass}
-r -1
-t ${tocken}
-f