From a9231cefb6e987c0fd5b7f1787c5007f461254ba Mon Sep 17 00:00:00 2001
From: Yifei Xu <yifeix@amazon.com>
Date: Wed, 12 Oct 2022 13:56:22 +0000
Subject: [PATCH] Add variable definition in AWS application.properties to fix
 pod crashing

---
 .../indexer-aws/src/main/resources/application.properties    | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/provider/indexer-aws/src/main/resources/application.properties b/provider/indexer-aws/src/main/resources/application.properties
index c1fb5c941..0fd4d55c6 100644
--- a/provider/indexer-aws/src/main/resources/application.properties
+++ b/provider/indexer-aws/src/main/resources/application.properties
@@ -5,6 +5,8 @@ AUTHORIZE_API=${ENTITLEMENTS_BASE_URL}/api/entitlements/v2
 logging.level.org.springframework.web=${LOG_LEVEL}
 server.port=${APPLICATION_PORT}
 
+aws.environment=${ENVIRONMENT}
+
 aws.threads=50
 DEFAULT_DATA_COUNTRY=US
 CRON_INDEX_CLEANUP_THRESHOLD_DAYS=3
@@ -25,6 +27,9 @@ GAE_SERVICE=indexer
 #reusing STORAGE_BASE_URL variable here as the base url to point to schema service
 SCHEMA_HOST=${SCHEMA_BASE_URL}/api/schema-service/v1/schema
 
+PARTITION_PATH=/api/partition/v1
+PARTITION_API=${PARTITION_BASE_URL}${PARTITION_PATH}
+
 STORAGE_SCHEMA_HOST=${STORAGE_BASE_URL}/api/storage/v2/schemas
 STORAGE_QUERY_RECORD_HOST=${STORAGE_BASE_URL}/api/storage/v2/query/records
 STORAGE_QUERY_KINDS_HOST=${STORAGE_BASE_URL}/api/storage/v2/query/kinds
-- 
GitLab