page_title | subcategory | description |
---|---|---|
airbyte_source_google_sheets Resource - terraform-provider-airbyte |
SourceGoogleSheets Resource |
SourceGoogleSheets Resource
resource "airbyte_source_google_sheets" "my_source_googlesheets" {
configuration = {
batch_size = 10
credentials = {
authenticate_via_google_o_auth = {
client_id = "...my_client_id..."
client_secret = "...my_client_secret..."
refresh_token = "...my_refresh_token..."
}
service_account_key_authentication = {
service_account_info = "{ \"type\": \"service_account\", \"project_id\": YOUR_PROJECT_ID, \"private_key_id\": YOUR_PRIVATE_KEY, ... }"
}
}
names_conversion = false
spreadsheet_id = "https://docs.google.com/spreadsheets/d/1hLd9Qqti3UyLXZB2aFfUWDT7BG-arw2xy4HR3D-dwUb/edit"
}
definition_id = "8010dc77-56bf-4220-982b-1460e03dad99"
name = "...my_name..."
secret_id = "...my_secret_id..."
workspace_id = "6266806c-1cd7-4250-b2c6-f4ef1504f265"
}
configuration
(Attributes) (see below for nested schema)name
(String) Name of the source e.g. dev-mysql-instance.workspace_id
(String)
definition_id
(String) The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. Requires replacement if changed.secret_id
(String) Optional secretID obtained through the public API OAuth redirect flow. Requires replacement if changed.
created_at
(Number)source_id
(String)source_type
(String)
Required:
credentials
(Attributes) Credentials for connecting to the Google Sheets API (see below for nested schema)spreadsheet_id
(String) Enter the link to the Google spreadsheet you want to sync. To copy the link, click the 'Share' button in the top-right corner of the spreadsheet, then click 'Copy link'.
Optional:
batch_size
(Number) Default value is 1000000. An integer representing row batch size for each sent request to Google Sheets API. Row batch size means how many rows are processed from the google sheet, for example default value 1000000 would process rows 2-1000002, then 1000003-2000003 and so on. Based on Google Sheets API limits documentation, it is possible to send up to 300 requests per minute, but each individual request has to be processed under 180 seconds, otherwise the request returns a timeout error. In regards to this information, consider network speed and number of columns of the google sheet when deciding a batch_size value. Default: 1000000names_conversion
(Boolean) Enables the conversion of column names to a standardized, SQL-compliant format. For example, 'My Name' -> 'my_name'. Enable this option if your destination is SQL-based. Default: false
Optional:
authenticate_via_google_o_auth
(Attributes) (see below for nested schema)service_account_key_authentication
(Attributes) (see below for nested schema)
Required:
client_id
(String, Sensitive) Enter your Google application's Client ID. See Google's documentation for more information.client_secret
(String, Sensitive) Enter your Google application's Client Secret. See Google's documentation for more information.refresh_token
(String, Sensitive) Enter your Google application's refresh token. See Google's documentation for more information.
Required:
service_account_info
(String, Sensitive) The JSON key of the service account to use for authorization. Read more here.
Import is supported using the following syntax:
terraform import airbyte_source_google_sheets.my_airbyte_source_google_sheets ""