IT and Development

Google Cloud Storage

14min

With Google Cloud Storage modules in Make, you can manage the buckets and objects in your Google Cloud Storage account.

To use the Google Cloud Storage modules, you must have a Google account, and a Google Cloud Storage project created in your Google Cloud Platform. You can create an account at accounts.google.com. You need to add Make as an authorized data source in Google Cloud Storage.

Refer to the Google Cloud Storage API documentation for a list of available endpoints.

Make's use and transfer of information received from Google APIs to any other app will adhere to Google API Services User Data Policy.

Connect Google Cloud Storage to Make

To establish the connection, you must:

Create and configure a Google Cloud Platform project for Google Cloud Storage

Before you establish the connection in Make, you must create and configure a project in the Google Cloud Platform to obtain your client credentials.

Create a Google Cloud Platform project for Google Cloud Storage

To create a Google Cloud Platform project:

  1. Log in to the Google Cloud Platform using your Google credentials.
  2. On the welcome page, click Create or select a project > New project.
  3. Enter a Project name and select the Location for your project.
  4. Click Create.
  5. In the top menu, check if your new project is selected in the Select a project dropdown. If not, select the project you just created.

To create a new project or work in the existing one, you need to have the serviceusage.services.enable permission. If you don’t have this permission, ask the Google Cloud Platform Project Owner or Project IAM Admin to grant it to you.

Enable APIs for Google Cloud Platform

To enable the required APIs:

  1. Open the left navigation menu and go to APIs & Services > Library.
  2. Search for the following APIs: Cloud Resource Manager API, Cloud Pub/Sub API (only for the Watch Objects module).
  3. Click the relevant API, then click Enable.

Configure your OAuth consent screen for Google Cloud Platform

To configure your OAuth consent screen:

  1. In the left sidebar, click Google Auth Platform.
  2. Click Get Started.
  3. In the Overview section, under App information, enter Make as the app name and provide your Gmail address. Click Next.
  4. Under Audience, select External.
    For more information regarding user types, refer to Google's Exceptions to verification requirements documentation.
  5. Under Contact Information, enter your Gmail address.
  6. Under Finish, agree to the Google User Data Policy.
  7. Click Continue > Create.
  8. Click Create OAuth Client.
  9. In the Branding section, under Authorized domains, add make.com and integromat.com. Click Save.
  10. Optional: In the Audience section, add your Gmail address on the Test users page, then click Save and continue if you want the project to remain in the Testing publishing status.
  11. In the Data Access section, click Add or remove scopes, add the following scopes, and click Update > Save.
    • https://www.googleapis.com/auth/devstorage.read_write
    • https://www.googleapis.com/auth/devstorage.full_control
    • https://www.googleapis.com/auth/devstorage.read_only
    • https://www.googleapis.com/auth/cloud-platform.read-only
    • https://www.googleapis.com/auth/cloud-platform

You can add scopes using:

  • A table with filters:
Document image

  • A window to manually enter scopes:
    Document image
    

Publishing Status

Testing: If you keep your project in the Testing status, you will be required to reauthorize your connection in Make every week. To avoid weekly reauthorization, update the project status to In production.

In production: If you update your project to the In production status, you will not be required to reauthorize the connection weekly. To update your project's status, go to the Google Auth Platform, the Audience section, and click Publish app. If you see the notice Needs verification, you can choose whether to go through the Google verification process for the app or to connect to your unverified app. Currently connecting to unverified apps works in Make, but we cannot guarantee the Google will allow connections to unverified apps for an indefinite period.

For more information regarding the publishing status, refer to the Publishing status section of Google's Setting up your OAuth consent screen help.

Create your Google Cloud Storage client credentials

To create your client credentials:

  1. In Google Auth Platform, click Clients.
  2. Click + Create Client.
  3. In the Application type dropdown, select Web application.
  4. Update the Name of your OAuth client. This will help you identify it in the platform.
  5. In the Authorized redirect URIs section, click + Add URI and enter the following redirect URI: https://www.integromat.com/oauth/cb/google-custom.
  6. Click Create.
  7. Click the OAuth 2.0 Client you created, copy your Client ID and Client secret values, and store them in a safe place.

You will use these values in the Client ID and Client Secret fields in Make.

Establish the connection with Google Cloud Storage in Make

To establish the connection in Make:

  1. Log in to your Make account, add a Google Cloud Storage module to your Make, and click Create a connection.
    Note: If you add a module with an instant tag, click Create a webhook, then Create a connection.
  2. Optional: In the Connection name field, enter a name for the connection.
  3. In the Client ID and Client Secret fields, enter the values you copied in the Create your Google Cloud Storage client credentials section above.
  4. Optional: Switch on the Show advanced settings toggle and add the needed scopes.
  5. Click Sign in with Google.
  6. If prompted, authenticate your account and confirm access.

You have successfully established the connection. You can now edit your Make and add more Google Cloud Storage modules. If your connection requires reauthorization at any point, follow the connection renewal steps here.

Build Google Cloud Storage Make

After connecting the app, you can perform the following actions:

Buckets

  • Create a Bucket

    Note: Refer to Google documentation to learn more about buckets name.

    In the Labels field, specify key-value metadata pairs that allow you to group your buckets along with other Google Cloud resources such as virtual machine instances and persistent disks. For example, you can use labels to create a team key that has values alphabeta, and delta, and apply the team:alphateam:beta, and team:delta labels to different buckets in order to indicate which team is associated with those buckets. You can create a maximum of 64 labels.

    In the Predefined ACL field, select a predefined set of access controls for this bucket:

    In the Predefined Default Object ACL field, select a predefined set of default object access controls for this bucket:

  • Get a Bucket
  • List Buckets
  • Update a Bucket
  • Delete an Empty Bucket

Objects

  • Watch Objects
  • Upload an Object
    Note: The maximum size is 5 TB.
  • Merge Objects
  • Get an Object
  • Search Objects
  • Clone an Object
  • Update an Object
  • Delete an Object

Bucket ACLs

  • Create a Bucket ACL
  • Get a Bucket ACL
  • List Bucket ACLs
  • Update a Bucket ACL
  • Delete a Bucket ACL

Bucket Default Object ACLs

  • Create a Bucket's Default Object ACL
  • Get a Bucket's Default Object ACLs
  • Update a Bucket's Default Object ACL
  • Delete a Bucket's Default Object ACL

Object ACLs

  • Create an Object ACL
  • Get an Object ACL
  • List Object ACLs
  • Update an Object ACL
  • Delete an Object ACL

Other

  • Make an API Call