Creating a GCP Service Account for Platus Integration
To enable Platus to collect your GCP resources, you need to set up a Service Account with the necessary permissions. Follow these steps to create the Service Account and obtain the JSON key.
#
Step 1: Create a Service AccountGo to the GCP Console: Open the Google Cloud Console at https://console.cloud.google.com/.
Select or Create a Project: Ensure you have the correct project selected, or create a new project if necessary. You can select a project from the project dropdown at the top of the page.
Navigate to the IAM & Admin: In the left-hand menu, click on IAM & Admin, then select Service Accounts.
Create a Service Account:
- Click + CREATE SERVICE ACCOUNT.
- Enter a Service Account Name (e.g.,
platus-read-only
). - (Optional) Enter a Service Account Description.
- Click CREATE AND CONTINUE.
Grant the Service Account Permissions:
- In the Grant this service account access to project section, click Select a role.
- Choose Viewer under the Basic category to provide read-only access.
- Click + ADD ANOTHER ROLE.
- Select Storage Object Viewer to list Buckets.
- Click + ADD ANOTHER ROLE.
- Select Compute Viewer to list VM instances.
- Click + ADD ANOTHER ROLE.
- Select Monitoring Viewer to allow for cost estimation of your Buckets.
- Click CONTINUE.
Skip Granting Users Access:
- Click DONE on the next screen to skip granting users access to this service account.
#
Step 2: Create and Download the JSON KeyNavigate to the Service Account:
- Find the newly created service account in the list and click on it.
Create a Key:
- Click on the KEYS tab.
- Click ADD KEY, then select Create new key.
- Ensure the key type is set to JSON and click CREATE.
Download the JSON Key:
- The JSON key file will be automatically downloaded to your computer. Store this file securely, as it contains the credentials needed to authenticate Platus with your GCP account.