Open andyrogers1973 opened 7 months ago
Investigating how to create an s3 bucket via code.
Started writing script to pull csv file from s3, upload amended csv to s3 from repo.
Figuring out the workflow - best way to update the csv file with new data, is this via the Google sheet (current method) or find a new way (maybe with web front end and db, edit csv in the repo?)
Example of how data can be added as a new file and Athena is used to create a table from all the files: https://github.com/moj-analytical-services/lookup_offence/blob/main/.github/scripts/deploy.py
Understanding the method used in the example above and how to implement this for support stats
Draft PR for first version of the s3 upload script #72
Have now updated the script with changes:
Added a timestamp variable. Use this variable to create in the write_path for the latest csv update
Create s3 bucket for support stats:
operations-engineering-support-request-stats
Added support_request_stats.json to create the table schema
Replaces https://github.com/ministryofjustice/operations-engineering/issues/4209 which has been broken down into smaller tickets.
Related to https://github.com/ministryofjustice/operations-engineering/issues/4350 and https://github.com/ministryofjustice/operations-engineering/issues/4353 which change and test the data format Support Request stats are reported in.
This ticket is to look at the possibility of storing the Support Requests stats reporting data in an S3 bucket.
To achieve this:
Considered done when: