- Create an AWS service account to access the Google APIs.
- Create a Google Sheet and give write access to the service account created above.
- SPREADSHEET_ID: Spreadsheet ID of the target Google Sheet.
- SHEET_NAME: Sheet name of the target spread sheet.
- GITHUB_REPO_OWNER: Owner of the target GitHub repository.
- GITHUB_REPO: Target GitHub repository.
Set the preferred value for the following property in the serverless.yml file. (The interval is not effective when the running function locally.)
- schedule: rate(1 minute).
- Clone the repository.
- Copy the credentials.json file of the Google Service Account to the root of the cloned directory.
- Configure the environment variables mentioned above.
- Run npm install command inside the directory.
- Run npm start command inside the directory.
- Make sure you have configured AWS credentials locally.
- Run npm run deploy command inside the directory.
- Make sure you have configured AWS credentials locally.
- Run npm run undeploy command inside the directory.