This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Google Cloud Setup

Create Google Cloud Project and Service Account for Google Chat integration

What You’ll Create

  • Google Cloud Project
  • Service Account with JSON credentials
  • Enabled Google Chat API

Prerequisites

Before starting, ensure you have:

  • Google Cloud Platform account with billing enabled
  • Google Workspace account (Business, Enterprise, or Education)

Step-by-Step Setup

1. Create Google Cloud Project

Set Up Project

  1. Go to Google Cloud Console
  2. Click Select a project then New Project

Google Cloud Console Project dialog

  1. Enter project name: ohlala-smartops (or your preferred name)

  2. Click Create Google Cloud Console New Project dialog

  3. Wait for project creation to complete

2. Enable Google Chat API

  1. In Google Cloud Console, go to APIs & Services then Library

  2. Search for Google Chat API Google Cloud Console Search for Google Chat API

  3. Click Google Chat API

  4. Click Enable Google Cloud Console Search for Google Chat API

3. Create Service Account

Create the Account

  1. Go to IAM & Admin then Service Accounts
  2. Click Create Service Account

Service Account creation page

  1. Enter details:
    • Name: ohlala-smartops-bot
    • ID: ohlala-smartops-bot (auto-generated)
    • Description: Service account for Ohlala SmartOps Chat app Service Account creation page
  2. Click Create and Continue
  3. Skip the optional steps (roles, access)
  4. Click Done

Generate JSON Key

  1. Click on your new service account
  2. Go to Keys tab
  3. Click Add Key then Create new key Service Account creation page
  4. Select JSON format
  5. Click Create
  6. Save the downloaded JSON file securely

Create JSON key dialog

4. Prepare Credentials for CloudFormation

You’ll need two values for CloudFormation deployment:

Credential CloudFormation Parameter Where to Find
Project ID GoogleChatProjectId Visible in Google Cloud Console (top bar or project settings)
Service Account JSON GoogleChatServiceAccountInfo Downloaded JSON file (converted to single line)

Convert JSON to Single Line

The service account JSON must be on a single line for CloudFormation. Use one of these methods:

Linux/Mac:

cat service-account.json | jq -c

Windows (PowerShell):

Get-Content service-account.json | ConvertFrom-Json | ConvertTo-Json -Compress

Summary

At this point, you should have:

  • Google Cloud Project created
  • Project ID noted for CloudFormation
  • Google Chat API enabled
  • Service Account created
  • JSON key downloaded and converted to single line

Next Step

You’re ready to deploy the CloudFormation stack with your Google Chat credentials:

Continue to CloudFormation Deployment →