Create a Google Cloud Platform (GCP) cloud action to automatically discover assets from your Google Cloud Platform environment. This lets Lansweeper collect inventory data across your GCP projects and workloads (such as Compute Engine instances, Cloud SQL databases, and storage resources), so your cloud assets stay visible and up to date in a unified inventory.
Prerequisites
- You have completed the steps in Prepare Google Cloud Platform for Cloud Discovery
- Your Workload Identity Pool ID, Workload Identity Provider, Project Number, and Service Account Email
Create a GCP cloud action
- In your Lansweeper Site, go to Discovery > Actions.
- Select Create action.
- Select Cloud as the action type, and Google Cloud Platform (GCP) as the cloud source.
- Select Create.
- Enter a name and description for the action.
- Enter your Workload Identity Pool ID, Workload Identity Provider, Project Number, and Service Account Email.
- Select List projects.
- Choose the GCP projects you want to add to the discovery action.
- Under Asset types, select which types of assets to scan.
- Optionally, select Add a label include or exclude specific labels.
- Select Create trigger.
- Select Instant to run at a scheduled time on select days. Enter the name, time, and days you prefer.
- Finally, select Save and finish.