diff --git a/provider/partition-aws/src/main/java/org/opengroup/osdu/partition/provider/aws/cache/GroupCache.java b/provider/partition-aws/src/main/java/org/opengroup/osdu/partition/provider/aws/cache/GroupCache.java index b97638cf1bd0871422852ab88e247090ded662a0..c3330489477dd7e481d7229e75283d718f0d1549 100644 --- a/provider/partition-aws/src/main/java/org/opengroup/osdu/partition/provider/aws/cache/GroupCache.java +++ b/provider/partition-aws/src/main/java/org/opengroup/osdu/partition/provider/aws/cache/GroupCache.java @@ -33,11 +33,11 @@ import java.util.Map; @Component public class GroupCache { - @Value("${aws.elasticache.cluster.endpoint:null}") + @Value("${aws.elasticache.cluster.endpoint}") String REDIS_SEARCH_HOST; - @Value("${aws.elasticache.cluster.port:null}") + @Value("${aws.elasticache.cluster.port}") String REDIS_SEARCH_PORT; - @Value("${aws.elasticache.cluster.key:null}") + @Value("${aws.elasticache.cluster.key}") String REDIS_SEARCH_KEY; public ICache<String, Groups> GetGroupCache() throws K8sParameterNotFoundException, JsonProcessingException { K8sLocalParameterProvider provider = new K8sLocalParameterProvider(); diff --git a/provider/partition-aws/src/main/resources/application.properties b/provider/partition-aws/src/main/resources/application.properties index 1d5f89d7f512ad0340b664d1d533160c1d36100e..a5f1e4feed00c8c2111306ef303b0f96c8ca7e75 100644 --- a/provider/partition-aws/src/main/resources/application.properties +++ b/provider/partition-aws/src/main/resources/application.properties @@ -45,6 +45,6 @@ server.ssl.key-store-password=${SSL_KEY_STORE_PASSWORD:} spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration ## AWS ElastiCache configuration -aws.elasticache.cluster.endpoint=${CACHE_CLUSTER_ENDPOINT} -aws.elasticache.cluster.port=${CACHE_CLUSTER_PORT} -aws.elasticache.cluster.key=${CACHE_CLUSTER_KEY} \ No newline at end of file +aws.elasticache.cluster.endpoint=${CACHE_CLUSTER_ENDPOINT:null} +aws.elasticache.cluster.port=${CACHE_CLUSTER_PORT:null} +aws.elasticache.cluster.key=${CACHE_CLUSTER_KEY:null} \ No newline at end of file