From 133d054fc801162e2ce90a50e7d186fa29550c4b Mon Sep 17 00:00:00 2001 From: Biju Kunjummen Date: Fri, 3 Feb 2017 22:50:12 -0800 Subject: [PATCH] Fixed instructions for configuring EurekaIntanceConfig in AWS --- docs/src/main/asciidoc/spring-cloud-netflix.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/main/asciidoc/spring-cloud-netflix.adoc b/docs/src/main/asciidoc/spring-cloud-netflix.adoc index 8ea821fd..a08710b4 100644 --- a/docs/src/main/asciidoc/spring-cloud-netflix.adoc +++ b/docs/src/main/asciidoc/spring-cloud-netflix.adoc @@ -204,14 +204,14 @@ Depending on the way the security rules are set up in your Cloudfoundry instance ==== Using Eureka on AWS -If the application is planned to be deployed to an AWS cloud, then the Eureka instance will have to be configured to be Amazon aware and this can be done by customizing the {github-code}/spring-cloud-netflix-eureka-client/src/main/java/org/springframework/cloud/netflix/eureka/EurekaInstanceConfigBean.java[EurekaInstanceConfigBean] the following way: +If the application is planned to be deployed to an AWS cloud, then the Eureka instance will have to be configured to be AWS aware and this can be done by customizing the {github-code}/spring-cloud-netflix-eureka-client/src/main/java/org/springframework/cloud/netflix/eureka/EurekaInstanceConfigBean.java[EurekaInstanceConfigBean] the following way: [source,java,indent=0] ---- @Bean @Profile("!default") -public EurekaInstanceConfigBean eurekaInstanceConfig() { - EurekaInstanceConfigBean b = new EurekaInstanceConfigBean(); +public EurekaInstanceConfigBean eurekaInstanceConfig(InetUtils inetUtils) { + EurekaInstanceConfigBean b = new EurekaInstanceConfigBean(inetUtils); AmazonInfo info = AmazonInfo.Builder.newBuilder().autoBuild("eureka"); b.setDataCenterInfo(info); return b;