Browse Source

Merge pull request #1670 from bijukunjummen/gh-1641

gh-1641: Fixed instructions for configuring EurekaIntanceConfig in AWS
pull/6/head
Ryan Baxter 8 years ago committed by GitHub
parent
commit
a915651797
  1. 6
      docs/src/main/asciidoc/spring-cloud-netflix.adoc

6
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 ==== 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] [source,java,indent=0]
---- ----
@Bean @Bean
@Profile("!default") @Profile("!default")
public EurekaInstanceConfigBean eurekaInstanceConfig() { public EurekaInstanceConfigBean eurekaInstanceConfig(InetUtils inetUtils) {
EurekaInstanceConfigBean b = new EurekaInstanceConfigBean(); EurekaInstanceConfigBean b = new EurekaInstanceConfigBean(inetUtils);
AmazonInfo info = AmazonInfo.Builder.newBuilder().autoBuild("eureka"); AmazonInfo info = AmazonInfo.Builder.newBuilder().autoBuild("eureka");
b.setDataCenterInfo(info); b.setDataCenterInfo(info);
return b; return b;

Loading…
Cancel
Save