This connector materializes Flow collections into sheets in a Google Sheets spreadsheet.
It is available for use in the Flow web application. For local development or open-source workflows,
ghcr.io/estuary/materialize-google-sheets:dev provides the latest version of the connector as a Docker image. You can also follow the link in your browser to see past image versions.
To use this connector, you'll need:
At least one Flow collection.
If you haven't yet captured your data from its external source, start at the beginning of the guide to create a dataflow. You'll be referred back to this connector-specific documentation at the appropriate steps.
For performance reasons, this connector is limited to 1 million cells per materialized sheet. If a bound collection has more than 1 million unique keys, the materialization will fail.
If you plan to materialize a collection with an unbounded number of keys, you should first use a derivation to summarize it into a collection with a bounded set of keys.
- The URL of a Google spreadsheet that does not contain the output of a prior Flow materialization.
Materializing data to a spreadsheet that already contains the output of another Flow materialization can result in an error. Use a new spreadsheet for each materialization, or completely clear the output of prior materializations from the spreadsheet before you continue.
There are two ways to authenticate with Google when using this connector: signing in with Google through OAuth in the web app, and configuring manually with a Google service account key. OAuth is simpler, and is recommended when using the web app. Only manual configuration is supported using the CLI.
Additional prerequisites depend on the authentication method you choose.
OAuth authentication using the Flow web app
- The username and password of a Google account with edit access to the destination spreadsheet.
Google Sheets and Google Drive APIs enabled on your Google account.
A Google service account with:
- A JSON key generated.
- Edit access to the destination spreadsheet.
Follow the steps below to meet these prerequisites:
Create a service account and generate a JSON key. During setup, grant the account the Editor role on your project. You'll copy the contents of the downloaded key file into the Service Account JSON parameter when you configure the connector.
Share your Google spreadsheet with the service account, granting edit access.
To use this connector, begin with data in one or more Flow collections. Use the below properties to configure a Google Sheets materialization.
The following properties reflect the manual authentication method. If you're working in the Flow web app, you can use OAuth, so some of these properties aren't required.
|Authentication||Credentials used to authenticate with Google.||array, boolean, null, number, object, string||Required|
|Authentication type||Set to ||string|
|Service Account JSON||The JSON key of the service account to use for authorization, when using the ||string||Required|
|Spreadsheet URL||URL of the spreadsheet to materialize into, which is shared with the service account.||string||Required|
Configure a separate binding for each collection you want to materialize to a sheet. Note that the connector will add an addition column to the beginning of each sheet; this is to track the internal state of the data.
|Sheet Name||Name of the spreadsheet sheet to materialize into||string||Required|
This sample reflects the manual authentication method using the CLI.
# If you have multiple collections you need to materialize, add a binding for each one
# to ensure complete data flow-through