Grafana Plugin and InfluxDB - Trouble connecting to data bucket

I am trying to connect the Grafana plugin to a data bucket using InfluxDB. I am getting “Network Error: Bad Gateway(502)” error message when pushing “Save & Test”

I am running in AWS. What should the URL be? In the example, the address is “

Hi, you should use the same address you use to access your private instance from the browser.

Hope this helps.