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?
Terraform script for getting IP addresses for all GCP projects in my organisation
413 Views Asked by Charan Teja At
1
There are 1 best solutions below
Related Questions in GOOGLE-CLOUD-PLATFORM
- Why do I need to wait to reaccess to Firestore database even though it has already done before?
- Unable to call datastore using GCP service account key json
- Troubleshooting Airflow Task Failures: Slack Notification Timeout
- GoogleCloud Error: Not Found The requested URL was not found on this server
- Kubernetes cluster on GCE connection refused error
- Best way to upload images to Google Cloud Storage?
- Permission 'storage.buckets.get' denied on resource (or it may not exist)
- Google Datastream errors on larger MySQL tables
- Can anyone explain the output of apache-beam streaming pipeline with Fixed Window of 60 seconds?
- Parametrizing backend in terraform on gcp
- Nonsense error using a Python Google Cloud Function
- Unable to deploy to GAE from Github Actions
- Assigned A record for Subdomain in Cloud DNS to Compute Engine VM instance but not propagated/resolved yet
- Task failure in DataprocCreateClusterOperator when i add metadata
- How can I get the long running operation with google.api_core.operations_v1.AbstractOperationsClient
Related Questions in TERRAFORM-PROVIDER-GCP
- Difference between google_project_iam_* and other google_*_iam_* resources
- Permissions issue for google cloud build terraform
- How to release terraform state lock file from GCP backend when using automation for deployment
- Terraform - Google cloud - create multiple service accounts with multiple roles
- How to resolve terraform message: 'google_compute_ssl_certificate.xxx must be replace'?
- GCP IP address range
- Provision Google Cloud Composer 2 with Terraform
- how to disable soft delete from a GCS bucket
- What is the equivalent of this gcloud add-iam-policy-binding in terraform?
- GCP VPC SC No Matching Access Level for FetchUserPreference Method
- 502 "failed_to_pick_backend" when using PSC backend with Classic Load Balancer
- GKE Autopilote EgressNATPolicy with terraform
- Terraform Script to copy Big query dataset to GCS Bucket
- Using HEREDOC in Terraform config always triggers update
- Trouble with Terraform Provisioner File: Copying File to GCP VM
Related Questions in SPRING-CLOUD-GCP
- Spring Cloud PubSub Migration Error - DefaultSubscriberFactory
- GCP Firestore(Datastore mode): Data fetching in SpringBoot using spring-cloud-gcp v4.9.2 throwing an exception
- Subscribers don't reconnect to the subscription when there is no traffic #2599
- Spring Cloud Sleuth different trace-ID integrate with pubsub: not propogating same trace-id in one call
- LoggingAppender getting `projectId` from service account key json instead of env variable `GOOGLE_CLOUD_PROJECT`
- My subscriber receive a message from GCP subscription with exactly 60 seconds delay sometimes
- How to disable stackdriver logging in a spring application for a GCP project without creating a new docker image
- GCP Compute Engine API Filter Issue with startTime and endTime in Java
- Add custom converter before manully binding properties using EnvironmentAware : Springboot
- GCP ADC Impersonated Service Account Not Recognized
- Missing index configuration firestore Spring Boot
- How enable Google Cloud Tracing for all endpoints of Spring Boot 2.7.x application?
- Spring GCP cloud run spring boot 3 Micromter customized context propagation to look primarily for x-cloud-trace-context
- Spring Boot 3 is not creating spans based on Traceparent Header
- How to fix "Previous Channel was not shutdown properly error" when trying to publish multiple messages to GCP Pubsub topic
Related Questions in QUALYS
- OpenSSL showing "70010000:error:0A0000BF:SSL routines:tls_setup_handshake:no protocols available:ssl\statem\statem_lib.c:104:" when testing for TLS1.0
- Can we scan Azure PAAS services in Qualys? And which module does it used
- Integrating Power BI with Qualys dashboards
- How do I know when qcs-sensor has completed it's scan
- Qualys container image scanning in GitHub Actions
- VM Vulnerability assessment reports in csv file and send it to Artifact
- I want to understand what some of these Qualys scan means
- Modify curl command to ansible uri module
- How to write pre/post-scripts for Azure VMs?
- How can I pass a powershell command in Ansible with parameters
- Microsoft defender for cloud gives Findings have not been received yet for the VM message
- API downloading CSV File thru Jmeter shows different File Size & content
- Runnng Qualys API call in Python and response not getting returned without error
- How to get error message content from console?
- Fixing/hiding Path Based Vulnerabilities in WordPress
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
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.