Semi-last remaining piece of fully automating generation of
OpenStack invoices.
All that's left is to change coldfront data from using a
provided file to making a query, and to wrap it up using
a Dockerfile and put a cronjob.
Adds two command line arguments and functionality described
therein.
--download-sql-dump-from-s3 True
When set to True, automatically downloads the SQL dump from
S3 compatible storage. Supports configuring the input S3
through environment variables S3_INPUT_ACCESS_KEY_ID,
S3_INPUT_SECRET_ACCESS_KEY, S3_INPUT_BUCKET, and
S3_OUTPUT_ENDPOINT_URL.
Will also automatically uncompress the file if it has been
gzipped to save space.
--convert-sql-dump-file-from-s3
Automatically converts the provided sql-dump-file (either
through local path or download using the mysql2sqlite
executable. (Must be present in path.)
Adds some logging and configures it to print INFO level logs.
Semi-last remaining piece of fully automating generation of OpenStack invoices. All that's left is to change coldfront data from using a provided file to making a query, and to wrap it up using a Dockerfile and put a cronjob.
Adds two command line arguments and functionality described therein.
--download-sql-dump-from-s3 True
--convert-sql-dump-file-from-s3