Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
README.md 10.11 KiB

Indexer Service

indexer-aws is a Spring Boot service that provides a set of APIs to index storage records against Elasticsearch. It's not user-facing, all APIs are used internally by the platform.

Running Locally

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Pre-requisites

Service Configuration

In order to run the service locally or remotely, you will need to have the following environment variables defined.

name example value required description sensitive?
LOCAL_MODE true yes Set to 'true' to use env vars in place of the k8s variable resolver no
APPLICATION_PORT 8080 yes The port the service will be hosted on. no
AWS_REGION us-east-1 yes The region where resources needed by the service are deployed no
AWS_ACCESS_KEY_ID ASIAXXXXXXXXXXXXXX yes The AWS Access Key for a user with access to Backend Resources required by the service yes
AWS_SECRET_ACCESS_KEY super-secret-key== yes The AWS Secret Key for a user with access to Backend Resources required by the service yes
AWS_SESSION_TOKEN session-token-xxxxxxxxxx no AWS Session token needed if using an SSO user session to authenticate yes
ENVIRONMENT osdu-prefix yes The Resource Prefix defined during deployment no
LOG_LEVEL DEBUG yes The Log Level severity to use (https://www.tutorialspoint.com/log4j/log4j_logging_levels.htm) no
SSM_ENABLED true yes Set to 'true' to use SSM to resolve config properties, otherwise use env vars no
SSL_ENABLED false no Set to 'false' to disable SSL for local development no
ENTITLEMENTS_BASE_URL http://localhost:8081 or https://some-hosted-url yes Specify the base url for an entitlements service instance. Can be run locally or remote no
PARTITION_BASE_URL http://localhost:8082 or https://some-hosted-url yes Specify the base url for a partition service instance. Can be run locally or remote no
STORAGE_BASE_URL http://localhost:8082 or https://some-hosted-url yes Specify the base url for a partition service instance. Can be run locally or remote no
SCHEMA_BASE_URL http://localhost:8082 or https://some-hosted-url yes Specify the base url for a partition service instance. Can be run locally or remote no
STORAGE_RECORDS_BATCH_SIZE 20 Batch size for storage API POST {endpoint}/query/records:batch no -
STORAGE_RECORDS_BY_KIND_BATCH_SIZE - Batch size for storage API GET {endpoint}/query/records. If this is not present, defaults to value of STORAGE_RECORDS_BATCH_SIZE no -