"""Lambda module.""" import sentry_sdk from sentry_sdk.integrations.aws_lambda import AwsLambdaIntegration from src import config from src.config import app_logger from src.logic import message_handling if config.SENTRY_DSN: sentry_sdk.init( dsn=config.SENTRY_DSN, environment=config.ENVIRONMENT, integrations=[AwsLambdaIntegration(timeout_warning=True)] ) def handler(_, context): """Lambda Entry point.""" indexes = message_handling.get_all_indexes() app_logger.debug(indexes) return message_handling.sqs_send_message(indexes)