Reputation: 617
We are in the process of remodelling our cloud infrastructure. In an endeavor to do so, we need a list of all cloud resources in the project, along with below properties:
Is there a quick approach to do so?
Upvotes: 0
Views: 764
Reputation: 15276
The GCP Cloud Asset Inventory service seems like a good match for your needs. This is an API/commands for working with the database of assets (things) in your GCP environment. From this you can dump your resource definitions as well as request feeds for changes within the environment.
To get a current dump of resources, we can use gcloud asset list
see Listing assets.
Upvotes: 3