I’m working on running Telegraf on AWS, then using webhooks to talk to it. I’m really hoping to stay with the Particle.publish() system, rather than adding on MQTT or something along those lines, primarily due to flash space issues. Working from a suggestion from @sja, I’ve gone through the following steps:
- Registered a domain through AWS Route53
- Created an instance of the Amazon Linux AMI
- Installed and config’d InfluxDB and Telegraf on the VM.
- Created a webhook pointing to https://mydomain.com/particle
- Created a Network ELB and pointed the domain alias to the ELB.
When I try to test the webhook through the Particle console, I’m getting a ‘socket hang up’ error. I strongly suspect the issue is in my ELB Listener and Target configs, but I’m not certain exactly how they need to be set up. My thoughts are as follows:
- Telegraf uses port 1619
- HTTPS uses 443
- So I should be listening on 443 and forwarding that to my vm target on 1619?
I’m definitely in over my head here, but it would be incredibly helpful if I could get this up and running. Does anyone have any thoughts?