polideainternal / cats-love-money Goto Github PK
View Code? Open in Web Editor NEWSet of scripts to terminate various GCP resources to save cash and cats π
License: Apache License 2.0
Set of scripts to terminate various GCP resources to save cash and cats π
License: Apache License 2.0
Hello,
Currently, the script looks at all possible Compute regions and checks if there is a Cloud Composer instance there, even if the region is not officially supported by Cloud Composer. This can be done much easier if we use Assets Inventory.
gcloud alpha asset list --project polidea-airflow --asset-types=composer.googleapis.com/Environment
This is equivalent to an HTTP request:
==== request start ====
uri: https://cloudasset.googleapis.com/v1p5beta1/projects/polidea-airflow/assets?alt=json&assetTypes=composer.googleapis.com%2FEnvironment&contentType=CONTENT_TYPE_UNSPECIFIED
method: GET
== headers start ==
b'X-Goog-User-Project': b'polidea-airflow'
b'accept': b'application/json'
b'accept-encoding': b'gzip, deflate'
b'authorization': --- Token Redacted ---
b'content-length': b'0'
b'user-agent': b'google-cloud-sdk gcloud/320.0.0 command/gcloud.alpha.asset.list invocation-id/b8260cf3f01f4a68b01784f6d1f43a3b environment/None environment-version/None interactive/True from-script/False python/3.7.2 term/xterm-256color (Macintosh; Intel Mac OS X 20.2.0)'
== headers end ==
== body start ==
== body end ==
==== request end ====
Best regards,
Kamil BreguΕa
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.