How to Get GCP Credentials
Obtain GCP Service Account Credentials for Secure Access
To securely access Google Cloud Platform resources programmatically, you need to create a Service Account and generate a JSON key.
This method works for a variety of use cases, such as accessing billing data, managing cloud resources, or integrating with third-party tools like Namirasoft Bill Watch.
Step 1: Sign In to the Google Cloud Console
Step 2: Select Your Project
-
In the top navigation bar, click the project dropdown to select the project you want to work with.
-
If you haven’t created a project, click New Project and follow the prompts to create one.
Step 3: Navigate to Service Accounts
-
From the left-side menu, click Menu (☰).
-
Go to IAM & Admin > Service Accounts.
Step 4: Create a New Service Account
-
Click the + CREATE SERVICE ACCOUNT button at the top of the page.
-
Enter a name and optional description.
-
Click CREATE AND CONTINUE.
Step 5: Generate the Service Account Key
-
After creating the service account, click the Actions (⋮) button next to the account you created.
-
Select Manage keys from the dropdown.
-
Click Add Key → Create new key.
-
Select JSON as the key type and click CREATE.
-
The JSON key file will automatically be downloaded to your computer.
Step 6: Store the File Securely
-
Important: Store this downloaded JSON key file securely, as it will be used to authenticate access programmatically.
-
This key contains sensitive information and should not be shared publicly.