millipz / nc-de-deliverance-project

Project Repo for Deliverance Team 2024
3 stars 2 forks source link

Extraction Lambda write_to_s3 function #21

Closed millipz closed 5 months ago

millipz commented 6 months ago
        Write file to S3 bucket as Json lines format

        Args:
            table_name (string)
            most_recent_timestamp (timestamp) : timestamp of most recent records in data
            table_data (list) : list of dictionaries all data in table, one dictionary per row keys will be column headings
            sequential_id (int) : integer stored in parameter store retrieved earlier in application flow

        Raises:
            FileExistsError: S3 object already exists with the same name
            ConnectionError : connection issue to S3 bucket

        Returns:
            None