Skip to content
Snippets Groups Projects
Commit 66fd7faf authored by Yunhua Koglin's avatar Yunhua Koglin
Browse files

minor fix on aws region

parent 162b8b7f
No related branches found
No related tags found
1 merge request!842minor fix on aws region
......@@ -355,7 +355,6 @@ The following software have components provided under the terms of this license:
- LatencyUtils (from http://latencyutils.github.io/LatencyUtils/)
- PostgreSQL JDBC Driver
- Stax2 API (from http://github.com/FasterXML/stax2-api)
- ThreeTen backport (from https://github.com/ThreeTen/threetenbp, https://www.threeten.org/threetenbp)
- jersey-core-common (from https://repo1.maven.org/maven2/org/glassfish/jersey/core/jersey-common)
========================================================================
......@@ -653,7 +652,6 @@ The following software have components provided under the terms of this license:
- AWS Java SDK for AWS Lambda (from https://aws.amazon.com/sdkforjava)
- Animal Sniffer Annotations (from https://repo1.maven.org/maven2/org/codehaus/mojo/animal-sniffer-annotations)
- Apache HttpClient Cache (from http://hc.apache.org/httpcomponents-client, http://hc.apache.org/httpcomponents-client-ga)
- Apache Log4j API (from https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-api)
- Apache Log4j to SLF4J Adapter (from https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-to-slf4j)
- Azure Java Client Authentication Library for AutoRest (from https://github.com/Azure/autorest-clientruntime-for-java)
......@@ -693,7 +691,6 @@ The following software have components provided under the terms of this license:
- SLF4J API Module (from http://www.slf4j.org)
- Spongy Castle (from http://rtyley.github.io/spongycastle/)
- Spring Data for Azure Cosmos DB SQL API (from https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/cosmos/azure-spring-data-cosmos, https://github.com/Azure/azure-sdk-for-java/tree/master/sdk/spring/azure-spring-data-cosmos)
- ThreeTen backport (from https://github.com/ThreeTen/threetenbp, https://www.threeten.org/threetenbp)
- adal4j (from https://github.com/AzureAD/azure-activedirectory-library-for-java)
- jersey-core-common (from https://repo1.maven.org/maven2/org/glassfish/jersey/core/jersey-common)
- micrometer-core (from https://github.com/micrometer-metrics/micrometer)
......
......@@ -51,11 +51,9 @@ public class MessageBusImpl implements IMessageBus {
@PostConstruct
public void init() throws K8sParameterNotFoundException {
String amazonSNSRegion;
K8sLocalParameterProvider provider = new K8sLocalParameterProvider();
amazonSNSRegion = provider.getParameterAsStringOrDefault("primary-region", currentRegion);
amazonSNSTopic = provider.getParameterAsString("storage-sns-topic-arn");
snsClient = new AmazonSNSConfig(amazonSNSRegion).AmazonSNS();
snsClient = new AmazonSNSConfig(currentRegion).AmazonSNS();
}
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment