- Create GCP project.
- Get GCP OAuth 2.0 token, save to credentials.json.
- Enable GCP Google Sheets API.
- Create new spreadsheet, and setting spreadsheet id to config.yaml
- Add AWS account for programmatic access, attach "AmazonEC2ReadOnlyAccess".
- Add AWS auth info to config.yaml
- Run docker, frist time, authorization required, then create token.json
- Now syncing
example config.yaml
Setting:
SyncTimeInterval: 1m
// https://docs.google.com/spreadsheets/d/{ID}/edit#gid=0
SpreadsheetId: XXXXXXXXXXXXXXXXXXXXX
AWS:
Auth:
- Account: {AWS Account}
AccessKey: {AWS AccessKey}
SecretKey: {AWS SecretKey}
Region: {AWS Region}
Project: "AWS-Dev"
example docker run
docker run -d --name sync-gsheet -v $(pwd)/config:/app kyos0109/go-sync-gsheet