terraform-provider-googleworkspace icon indicating copy to clipboard operation
terraform-provider-googleworkspace copied to clipboard

[Gauging Interest] Support for Google Sheets

Open megan07 opened this issue 3 years ago • 6 comments

Support Google Sheets

https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values

megan07 avatar Aug 27 '21 14:08 megan07

@megan07 you are the best!

paultyng avatar Aug 27 '21 14:08 paultyng

This is my existing data source, but please feel free to completely disregard and do you own thing 😄 https://registry.terraform.io/providers/paultyng/gsuite/latest/docs/data-sources/sheets_spreadsheet_values

The use case was that I swapped in a Google Sheet in places where I was previously using csvdecode for data, etc.

paultyng avatar Aug 27 '21 14:08 paultyng

Being able to write to Google Sheets with Terraform would be really cool. My current use case is my organization would like to keep a living document of all sites we're currently hosting that is easilly accessible to other departments.

briananstett avatar Apr 19 '22 19:04 briananstett

@megan07 just wondering if there's been any movement on this? Thanks for your help.

briananstett avatar Apr 26 '22 19:04 briananstett

I know it's not the same as "proper" support for Google Sheets, but my Terraform Provider for Google Drive supports importing a CSV file as a Google Sheet with the gdrive_file resource:

resource "gdrive_file" "import_csv" {
  name             = "my_sheet"
  mime_type        = "application/vnd.google-apps.spreadsheet"
  mime_type_source = "text/csv"
  content          = "./test.csv"
  parent           = gdrive_file.folder.id
}

Maybe that helps some of you guys with a relatively simple use case.

Edit: You could potentially also export a Sheet to a CSV file using the gdrive_file datasource.

hanneshayashi avatar Jan 12 '23 07:01 hanneshayashi

@megan07 I would be very interested on this

JavierLopezT avatar Jan 13 '23 12:01 JavierLopezT