Getting ready

The following are the initial setup verification steps, which are required before the recipe can be executed:

  1. Create or select a GCP project.
  2. Enable billing and enable the default APIs (some APIs like BigQuery, storage, monitoring, and a few others are enabled automatically).
  3. Give a appropriate permission to create service accounts.
  4. Verify that the Google Cloud SQL API is enabled.

 

  1. Let us also create a Cloud SQL instance to test our service accounts:
    1. Navigate to the SQL submenu and click on Create instance.
    2. Select MySQL as your database engine and choose the latest generation.
    3. Give an Instance ID and a password.
    4. With the defaults, create a Cloud SQL instance:

Get Google Cloud Platform Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.