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?
Asked
Active
Viewed 295 times
0

Peter Mortensen
- 30,738
- 21
- 105
- 131

Charan Teja
- 17
- 6
-
1Terraform does not have a feature to scan IP addresses. – John Hanley Mar 02 '21 at 00:11
-
Thanks John. there should be gcloud command that does it, correct? Do you know anything about it. – Charan Teja Mar 02 '21 at 16:42
-
1There is no substitute for reading the documentation. Start here: https://stackoverflow.com/help/how-to-ask – John Hanley Mar 02 '21 at 19:54
1 Answers
1
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.

Peter Mortensen
- 30,738
- 21
- 105
- 131

Sergiusz
- 1,175
- 4
- 13