Giter Site home page Giter Site logo

cuddly-dollop's Introduction

ccm-python

create cloud connectors and 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_categories.py

create cost categories in harness based on csvs for each cloud

usage: python3 cost_catagories.py "Unit Group" BU [csv #1] [csv #2] [csv #3]

cost_categories_xlsx.py

create cost categories in harness based on xlsx for each cloud

usage: python3 cost_catagories.py "Unit Group" Owners BU [xlsx #1] [xlsx #2] [xlsx #3]

get_cost_categories.py

get a CSV report of a cost category

usage: python3 get_cost_categories.py [cc name]

core_tags_cost_category.py

create the core tags cost category

usage: usage: core_tags_cost_catagory.py [core tags cc name] [xlsx]

cloud_connectors.py

create cloud connectors based on csv file

[cross account role name] == role name in aws that trusts harness [tenant id] == azure tenant id [service account email] == gcp service account email given in harness ui when creating a gcp connector

usage: cloud_connectors.py [cross account role name] [tenant id] [service account email] [csv #1] [csv #2] [csv #3]

cluster_connectors.py

create k8s and k8s ccm connectors for delegates seen at the account level

usage: cluster_connectors.py

By adding anything to the end of the command, we instead just get a list of delegates in your account

usage: cluster_connectors.py list

get_cloud_connectors.py

get the status of all AWS, Azure, and GCP cloud connectors, output into a csv

usage: get_cloud_connectors.py

governance_export.py

get all the governance evaluations for a month, output into a csv

usage: governance_export.py

to run for the previous month, specify how many months to go back, example for 2 months ago (in August now, want to get data for June):

usage: governance_export.py 2

cuddly-dollop's People

Contributors

rssnyder avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.