Module utilities.aws_utils
Container for send functions called via aws_specs and aws_specs_dev
Functions
def filtered_cloudwatch_events(boto3_admin_session: boto3.session.Session, filter_pattern: str, date_offset: int = 1, span: int = 1, log_group: str = '/aws/batch/pdf-extractor') ‑> list[str]
-
get log entries for a date range matching a filter pattern
def xfer_processed_files_to_dev(prod_boto3_admin_session: boto3.session.Session, dev_boto3_session: boto3.session.Session, date_offset: int = 1, prd_bucket: str = 'hank-ai-clients', dev_bucket: str = 'hank-ai-clients-dev', **kwargs)
-
move the files processed "date_offset" days in the past in prod to dev s3 for testing