Closed knikolla closed 8 months ago
Introduces the options
--upload-to-s3
coldfront calculate_storage_gb_hours
--s3-endpoint-url
--s3-bucket
--invoice-month
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.
Introduces the options
--upload-to-s3
which will upload the generated CSV fromcoldfront calculate_storage_gb_hours
.--s3-endpoint-url
and--s3-bucket
to configure the destination S3 compatible store and bucket.--invoice-month
which defaults to the month of the start date. This replaces the first column which was Interval.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.