Lucidity Disk Assessment is an automated Disk metrics collection tool developed for GCP. It helps in a quick Assessment of the GCP Disks, delivering insights on :
.png?sv=2022-11-02&spr=https&st=2026-04-01T17%3A32%3A24Z&se=2026-04-01T17%3A44%3A24Z&sr=c&sp=r&sig=4HsHOBbc5VjkvhS5AYwoRjpjJZYyocZj0h51VGnXC1o%3D)
Prerequisites
The following are the minimum requirements for running the GCP Assessment Tool.
OS: Windows 10 and above
Linux Ubuntu 20.04 and above
The user or service account should be present in the respective organization where the Assessment is going to take place.
Below are the permissions required to run the GCP Assessment:
compute.disks.get
compute.disks.list
compute.instances.get
compute.instances.list
compute.instances.setLabels
compute.instances.setMetadata
compute.instances.update
compute.zones.get
compute.zones.list
monitoring.timeSeries.list
osconfig.osPolicyAssignments.create
osconfig.osPolicyAssignments.delete
osconfig.osPolicyAssignments.get
osconfig.osPolicyAssignments.list
osconfig.osPolicyAssignments.searchPolicies
osconfig.osPolicyAssignments.update
resourcemanager.projects.get
resourcemanager.projects.list
resourcemanager.folders.list
servicemanagement.services.bind
serviceusage.services.disable
serviceusage.services.enable
serviceusage.services.get
serviceusage.services.list
serviceusage.services.use
osconfig.osPolicyAssignmentReports.list
Getting Started
To get started, customers can choose to authenticate either using OAuth 2.0 or using the Service Account key file method. Both the methods are explained below.
Using OAuth 2.0
Running Assessment on Windows can be done either through the cmd prompt or using Powershell.
Windows cmd:
curl https://audittool.s3.ap-south-1.amazonaws.com/script/gcp_scripts/run.bat -o run.bat && .\run.bat -oauth yes -oid <org-id> -p <mention project if Assessment is needed to be done for specific project or ignore>
Powershell cmd:
curl https://audittool.s3.ap-south-1.amazonaws.com/script/gcp_scripts/run.bat -o run.bat; .\run.bat -oauth yes -oid <org-id> -p <mention project if Assessment need to be done for specific project or ignore>
On a Linux machine, run the following command on the terminal.
curl https://audittool.s3.ap-south-1.amazonaws.com/script/gcp_scripts/run.sh --output run.sh && /bin/bash run.sh -oauth yes -oid <org-id> -p <mention project if Assessment need to be done for specific project or ignore>
You will then be redirected to the Google user credentials screen. Please select ‘Allow’ to begin the Assessment process.
.png?sv=2022-11-02&spr=https&st=2026-04-01T17%3A32%3A24Z&se=2026-04-01T17%3A44%3A24Z&sr=c&sp=r&sig=4HsHOBbc5VjkvhS5AYwoRjpjJZYyocZj0h51VGnXC1o%3D)
The Assessment will take around 3 hours to complete. Once the Assessment is complete, a zip file will be generated in the same directory where the Assessment had begun from. Please share the zip file through email.
Using Service Account File Authentication
Create the Service Account User
Login to the console and search for a Service account in the search bar.
Go and click on create service account
.png?sv=2022-11-02&spr=https&st=2026-04-01T17%3A32%3A24Z&se=2026-04-01T17%3A44%3A24Z&sr=c&sp=r&sig=4HsHOBbc5VjkvhS5AYwoRjpjJZYyocZj0h51VGnXC1o%3D)
Enter the service account name and continue
.png?sv=2022-11-02&spr=https&st=2026-04-01T17%3A32%3A24Z&se=2026-04-01T17%3A44%3A24Z&sr=c&sp=r&sig=4HsHOBbc5VjkvhS5AYwoRjpjJZYyocZj0h51VGnXC1o%3D)
We will not assign any roles here, you can click on DONE.
A Service account has been created
Now open that service account. Click on that newly created account.
Create a new key by clicking on the key tab and add a new key.
.png?sv=2022-11-02&spr=https&st=2026-04-01T17%3A32%3A24Z&se=2026-04-01T17%3A44%3A24Z&sr=c&sp=r&sig=4HsHOBbc5VjkvhS5AYwoRjpjJZYyocZj0h51VGnXC1o%3D)
A new key will be saved in your local computer, this key will be used for authentication, please save the path of this key file. It is required for running the Assessment.
Create lucidity Assessment role with req permissions
Go to the organization directory and click on the role.
.png?sv=2022-11-02&spr=https&st=2026-04-01T17%3A32%3A24Z&se=2026-04-01T17%3A44%3A24Z&sr=c&sp=r&sig=4HsHOBbc5VjkvhS5AYwoRjpjJZYyocZj0h51VGnXC1o%3D)
Click on create role.
.png?sv=2022-11-02&spr=https&st=2026-04-01T17%3A32%3A24Z&se=2026-04-01T17%3A44%3A24Z&sr=c&sp=r&sig=4HsHOBbc5VjkvhS5AYwoRjpjJZYyocZj0h51VGnXC1o%3D)
Create the role and provide the required permissions as mentioned above.
.png?sv=2022-11-02&spr=https&st=2026-04-01T17%3A32%3A24Z&se=2026-04-01T17%3A44%3A24Z&sr=c&sp=r&sig=4HsHOBbc5VjkvhS5AYwoRjpjJZYyocZj0h51VGnXC1o%3D)
Your role has been created.
Attach the role to the user at organization level
Click on create assignment.
.png?sv=2022-11-02&spr=https&st=2026-04-01T17%3A32%3A24Z&se=2026-04-01T17%3A44%3A24Z&sr=c&sp=r&sig=4HsHOBbc5VjkvhS5AYwoRjpjJZYyocZj0h51VGnXC1o%3D)
Provide the service account that was created earlier and assign the role that was created in the earlier step.
.png?sv=2022-11-02&spr=https&st=2026-04-01T17%3A32%3A24Z&se=2026-04-01T17%3A44%3A24Z&sr=c&sp=r&sig=4HsHOBbc5VjkvhS5AYwoRjpjJZYyocZj0h51VGnXC1o%3D)
Click on done. You have assigned and created the new service account with lucidity req roles for running Assessment.
Execute the Assessment
On Windows Machine please run the following command on cmd prompt.
curl https://audittool.s3.ap-south-1.amazonaws.com/script/gcp_scripts/run.bat -o run.bat && .\run.bat -oauth no-oid <org-id> -p <mention project if Assessment need to be done for specific project or ignore> -c <provide saved key file PATH>
On Windows, you may also choose to run the command using Powershell.
curl https://audittool.s3.ap-south-1.amazonaws.com/script/gcp_scripts/run.bat -o run.bat; .\run.bat -oauth no -oid <org-id> -p <mention project if Assessment need to be done for specific project or ignore> -c <provide saved key file PATH>
On Linux Machine run the following command on terminal:
https://audittool.s3.ap-south-1.amazonaws.com/script/gcp_scripts/run.sh --output run.sh && /bin/bash run.sh -oauth no -oid <org-id> -p <mention project if Assessment need to be done for specific project or ignore> -c <provide saved key file PATH>
The Assessment will take around 3 hours to complete. Once complete, please share the generated zip file with us through email.