title: Spring-boot eureka.datacenter property not found when used in application.yml
body: <p>I am creating spring-boot <code>Eureka server</code> and client micro-services to deploy on aws. I have read on tutorials that I have to define <code>eureka.datacenter: cloud</code> in my <code>application.yml</code> of eureka server so that it knows it is on aws. But when I try to use it in my application.yml file I get <code>unknown property 'eureka.datacenter'</code>.
  Dependencies I have included for eureka server.</p>
  
  <pre><code> &lt;dependencies&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-cloud-starter-eureka-server&lt;/artifactId&gt;
              &lt;/dependency&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-cloud-starter-config&lt;/artifactId&gt;
              &lt;/dependency&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-cloud-starter-eureka&lt;/artifactId&gt;
              &lt;/dependency&gt;
  
          &lt;/dependencies&gt;
  </code></pre>
  
  <p>I am using <code>Spring boot 1.5.8.RELEASE</code> and spring cloud <code>Edgware.SR1</code>.</p>
  
  <p>Is eureka.datacenter property included in different version of spring cloud?</p>
  
  <p>application.yml</p>
  
  <pre><code>spring:
    application:
      name: eureka-svc
  
  ---
  spring:
    profiles: localhost
  server:
    port: 8761
  eureka:
    instance:
      hostname: localhost
    client:   
      fetchRegistry: false
      register-with-eureka: false
      serviceUrl:
        defaultZone: http://localhost:8761/eureka
  ---
  spring:
    profiles: aws
  server:
    port: 8761 
  eureka:
    instance:
      non-secure-port: ${server.port}
      environment: production
    client:
      region: region
      register-with-eureka: true
      fetchRegistry: true
      use-dns-for-fetching-service-urls: true
      eureka-server-d-n-s-name: dns-name
      eureka-server-port: 8761
      eureka-server-u-r-l-context: eureka
    server:
      a-w-s-access-id: access-id
      a-w-s-secret-key: aws-key
      binding-strategy: route53
      list-auto-scaling-groups-role-name: role-name
  </code></pre>