nerc-project / coldfront-plugin-cloud

ColdFront plugin to manage resource allocations on OpenStack and OpenShift
GNU General Public License v3.0
4 stars 10 forks source link

Enable uploading generated invoice to S3 #143

Closed knikolla closed 8 months ago

knikolla commented 9 months ago

Introduces the options

Additionally

Requires setting the environment variables

It will upload two copies of the invoice using the below format (one for archiving and timestamped and one as a working copy)

/Invoices//Service Invoices/ .csv /Invoices//Archive/ .csv

Where Timestamp is the time at generation using the ISO8601 format and without any special characters. See example below.

For example, for November 2023.

/Invoices/2023-11/Service Invoices/NERC OpenStack 2023-11.csv /Invoices/2023-11/Service Invoices/NERC OpenShift 2023-11.csv /Invoices/2023-11/Service Invoices/NERC Storage 2023-11.csv /Invoices/2023-11/Archive/NERC OpenStack 2023-11 20231218T201706Z.csv /Invoices/2023-11/Archive/NERC OpenShift 2023-11 20231218T201706Z.csv /Invoices/2023-11/Archive/NERC Storage 2023-11 20231218T201706Z.csv

Tooling for OpenStack and OpenShift invoicing is already able to upload files using the above described conventions.