Skip to content

Commit

Permalink
Create a friendlier filename by exluding prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
sgibson91 committed May 22, 2024
1 parent 0cdf527 commit 4457d0b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions deployer/commands/transform/cost_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def aws(

# Construct output filename
output_path = Path(
f"2i2c_dedicated_cluster_billing_AWS_{months[0]}_{months[-1]}.csv"
f"AWS_{months[0]}_{months[-1]}.csv"
)

print_colour(f"Writing output CSV to: {output_path}")
Expand Down Expand Up @@ -165,7 +165,7 @@ def gcp(

# Construct output filename
output_path = Path(
f"2i2c_dedicated_cluster_billing_GCP_{months[0]}_{months[-1]}.csv"
f"GCP_{months[0]}_{months[-1]}.csv"
)

print_colour(f"Writing output CSV to: {output_path}")
Expand Down
12 changes: 6 additions & 6 deletions docs/howto/bill.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ AWS management account. If a future cluster deviates from this, you can tell by
deployer transform cost-table gcp pathto/downloaded/csvfile
```

This will output a new CSV file to your local filesystem called `2i2c_dedicated_cluster_billing_AWS_{START_MONTH}_{END_MONTH}.csv`.
1. Upload this CSV file to the [cloud costs folder]
1. Ping the folks in the `#billing` slack channel to let them know the info for dedicated clusters is now available and provide a link to the file you have just uploaded
This will output a new CSV file to your local filesystem called `AWS_{START_MONTH}_{END_MONTH}.csv`.
2. Upload this CSV file to the [cloud costs folder]
3. Ping the folks in the `#billing` slack channel to let them know the info for dedicated clusters is now available and provide a link to the file you have just uploaded

[direct link]: https://us-east-1.console.aws.amazon.com/costmanagement/home?region=us-east-1#/cost-explorer?reportId=d826a775-e0d6-4e85-a181-7f87a8deb162&reportName=Monthly%20costs%20by%20linked%20account&isDefault=true&chartStyle=GROUP&historicalRelativeRange=LAST_6_MONTHS&futureRelativeRange=CUSTOM&granularity=Monthly&groupBy=%5B%22LinkedAccount%22%5D&filter=%5B%5D&costAggregate=unBlendedCost&showOnlyUntagged=false&showOnlyUncategorized=false&useNormalizedUnits=false

Expand All @@ -100,9 +100,9 @@ Currently this is the recommended way of retrieving the costs from GCP.
deployer transform cost-table gcp pathto/downloaded/csvfile
```

This will output a new CSV file to your local filesystem called `2i2c_dedicated_cluster_billing_GCP_{START_MONTH}_{END_MONTH}.csv`.
1. Upload this CSV file to the [cloud costs folder]
1. Ping the folks in the `#billing` slack channel to let them know the info for dedicated clusters is now available and provide a link to the file just uploaded
This will output a new CSV file to your local filesystem called `GCP_{START_MONTH}_{END_MONTH}.csv`.
2. Upload this CSV file to the [cloud costs folder]
3. Ping the folks in the `#billing` slack channel to let them know the info for dedicated clusters is now available and provide a link to the file just uploaded

[2i2c billing account]: https://console.cloud.google.com/billing/0157F7-E3EA8C-25AC3C/reports;timeRange=CUSTOM_RANGE;from=2024-01-01;to=2024-01-31;dateType=INVOICE_DATE;invoiceCorrections=TAX,BILLING_MODIFICATION?organizationId=184174754493&project=two-eye-two-see

Expand Down

0 comments on commit 4457d0b

Please sign in to comment.