Skip to content

Instantly share code, notes, and snippets.

View mljohns89's full-sized avatar

Michael Johnson mljohns89

  • New York
View GitHub Profile
@mljohns89
mljohns89 / AwsEcsFargateConfig.java
Last active May 25, 2022 13:39
Example Config for Making Eureka work with AWS ECS Fargate
@Configuration
@Slf4j
public class AwsEcsFargateConfig {
private static final String AWS_API_VERSION = "v2";
private static final String AWS_METADATA_URL = "http://169.254.170.2/" + AWS_API_VERSION + "/metadata";
@Value("${server.port}")