Skip to main content

How to Create a Google Cloud Service Account Key

How to Create a Google Cloud Service Account Key (JSON)​

This guide explains how to create a service account key in JSON format to enable secure authentication for applications accessing Google Cloud services.

🔧 Step-by-Step Instructions​

1. Open the Google Cloud Console​

Navigate to: https://console.cloud.google.com/


2. Go to the “Service Accounts” Section​

In the main menu, go to: IAM & Admin → Service Accounts Or use this direct link: https://console.cloud.google.com/iam-admin/serviceaccounts


3. Create a New Service Account (If Needed)​

  1. Click “Create Service Account”

  2. Fill in:

    • Service account name
    • ID (auto-generated)
    • Description (optional)
  3. Click Create and Continue

  4. Assign appropriate roles based on what permissions the service needs. Example roles:

    • Storage Admin for Google Cloud Storage
    • Editor or Viewer for general access
  5. Click Done


4. Generate the JSON Key​

  1. Locate the service account in the list
  2. Click the three dots (︙) on the right → Manage keys
  3. Click Add Key → Create new key
  4. Choose JSON as the key type
  5. Click Create

This downloads a .json file to your machine. Keep this file safe—it contains sensitive credentials.


danger

Important Security Note:

  • 🔒 Do not share the key or commit it to version control (e.g., GitHub).
  • 📁 Store it securely, such as in a secret manager or an environment-protected folder.
  • Nocodo AI stores your Credentials securely. The only way they can be accessed is when you execute your projects.