Terraform script for getting IP addresses for all GCP projects in my organisation

379 views Asked by At

I want to scan all the IP addresses on my organization's GCP account and feed it to a file every week or so. How do I write a Terraform script/code to pull those data from GCP and then send it to the Qualys API for scanning?

1

There are 1 answers

0
Sergiusz On BEST ANSWER

AFAIK, there is no simple way to achieve that. You can find similar question and partial solutions here.

But if you want a complete list of all IPs in organization, I would suggest starting with a method to list all resources in organization or to use Cloud Asset Inventory.

If you feel like this is a feature that should be available, you can file a feature request.