Search code examples
google-cloud-platformterraform-provider-gcpspring-cloud-gcpqualys

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


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?


Solution

  • 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.