https://github.com/rssnyder/reimagined-dollop
M
https://github.com/rssnyder/reimagined-dollop
Last synced: about 1 year ago
JSON representation
M
- Host: GitHub
- URL: https://github.com/rssnyder/reimagined-dollop
- Owner: rssnyder
- Created: 2023-08-02T17:02:11.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-05T18:20:50.000Z (almost 3 years ago)
- Last Synced: 2025-06-18T18:05:18.096Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ccm-python
create cost categories using python
# csv files
these scripts expect csv files. if you are using the excel file format you will need to save it as a csv (comma delimited)
# authentication
the following environment variables should be set:
HARNESS_PLATFORM_API_KEY: a harness api key
HARNESS_ACCOUNT_ID: your harness account identifier
# cost_catagories.py
create cost catagories in harness based on csvs for each cloud
usage: `python3 cost_catagories.py [csv]`
example: `python3 cost_catagories.py "My Domains" "My BUs" projects.csv`
# get_clusters.py
get all gke clusters in a gcp organization
requires a gcp org id
usage: `GCP_ORG_ID=862299901433 python3 get_clusters.py [Cluster BU CC Name] [project->bu csv file]`