# Heartbeat Auto-discovery not working for AWS ELB

**URL:** https://discuss.elastic.co/t/heartbeat-auto-discovery-not-working-for-aws-elb/250302
**Category:** Beats
**Tags:** heartbeat
**Created:** [September 29, 2020, 7:16am UTC](https://discuss.elastic.co/t/heartbeat-auto-discovery-not-working-for-aws-elb/250302 "2020-09-29T07:16:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Ayush\_Agrahari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayush_agrahari/32/74932_2.png) [@Ayush\_Agrahari](https://discuss.elastic.co/u/Ayush_Agrahari)
#### Post date: [September 29, 2020, 7:16am UTC](https://discuss.elastic.co/t/heartbeat-auto-discovery-not-working-for-aws-elb/250302/1 "2020-09-29T07:16:36Z")

</div>

We are trying setup for AWS ELB Heartbeats. We got way to do in document [https://www.elastic.co/guide/en/beats/heartbeat/current/configuration-autodiscover.html](https://www.elastic.co/guide/en/beats/heartbeat/current/configuration-autodiscover.html) but when we tried the same then not getting any beats from ELB in Uptime.

Please find config file below.

```auto
apiVersion: v1
kind: ConfigMap
metadata:
  name: heartbeat-deployment-config
  namespace: {{ .Values.dataplane.namespace }}
  labels:
    k8s-app: heartbeat
data:
  heartbeat.yml: |-
    heartbeat.autodiscover:
      providers:
        - type: aws_elb
          period: 1m
          regions:
            - ***********
          access_key_id: ' ************************'
          secret_access_key: ' *****************'
          templates:
              config:
                - type: tcp
                  hosts: ["${data.host}:${data.port}"]
                  schedule: "@every 10s"
                  timeout: 1s

    processors:
      - add_cloud_metadata:

    cloud.id: ${ELASTIC_CLOUD_ID}
    cloud.auth: ${ELASTIC_CLOUD_AUTH}
    setup.ilm.policy_file: /certs/ilm_policy.json
    output.elasticsearch:
      hosts: ['https://${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}']
      username: ${ELASTICSEARCH_USERNAME:elastic}
      password: ${ELASTICSEARCH_PASSWORD:changeme}
      ssl:
        enabled: true
        verification_mode: none

```

Please help me on this ?

FYI: @vamsikrishna_medeti

---

<div class="post-metadata">

### Author: ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)
#### Post date: [September 29, 2020, 4:13pm UTC](https://discuss.elastic.co/t/heartbeat-auto-discovery-not-working-for-aws-elb/250302/2 "2020-09-29T16:13:20Z")

</div>

Hey @Ayush_Agrahari,

I think that the templates need to be a list, so it should be defined like that:

```auto
          templates:
              - config:
                - type: tcp
                  hosts: ["${data.host}:${data.port}"]
                  schedule: "@every 10s"
                  timeout: 1s

```

Notice the `-` before `config`.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [October 27, 2020, 6:13pm UTC](https://discuss.elastic.co/t/heartbeat-auto-discovery-not-working-for-aws-elb/250302/3 "2020-10-27T18:13:23Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
