https://www.consul.io/docs/guides/external.html
Announcement
You can find all my latest posts on medium.https://aws.amazon.com/blogs/aws/keeping-time-with-amazon-time-sync-service/
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/set-time.html#configure-amazon-time-service
$ curl -X PUT -d '{ "Node": "aws-ntp", "Address": "169.254.169.123", "Service": { "Service": "ntp" } }' http://localhost:8500/v1/catalog/register
nslookup of ntp.service.{{domain}} should now work.
you can then populate /etc/ntp.conf with ‘ntp.service.{{domain}}’ using consul templates.
In case you want to deregister this service from consul, run:
$ curl --request PUT --data @deregister.json http://localhost:8500/v1/catalog/deregister
where:
$ cat deregister.json { "Node": "aws-ntp", "Address": "169.254.169.123", "Service": { "Service": "ntp" } }