- Log into your Google Cloud console and navigate to IAM Admin > Service Accounts.
- Click on "Create Service Account".
- Enter "CloudSploit" in the "Service account name", then enter "CloudSploit API Access" in the description.
- Click on Continue.
- Select the role: Project > Viewer.
- Click on Continue.
- Click on "Create Key".
- Leave the default JSON selected.
- Click on "Create".
- The key will be downloaded to your machine.
- Open the JSON key file, in a text editor and copy the Project Id, Client Email and Private Key values into the
index.js
file. - Enter the APIs & Services category.
- Select Enable APIS & SERVICES at the top of the page
- Search for DNS, then Select the option that appears and Enable it.
- Enable all the APIs used to run scans, they are as follows: Stackdriver Monitoring, Stackdriver Logging, Compute, Cloud Key Management, Cloud SQL Admin, Kubernetes, Service Management, and Service Networking.