tf
This repository contains Terraform code for managing my personal infrastructure including the following:
- Gmail labels
- Gmail filters
Credentials
I am using Oauth2 credentials for GCP storage bucket state and the Workspace API.
-
Create Oauth Client ID for Desktop Application
-
Download JSON file for Oauth credentials
-
Run the following command:
gcloud auth application-default login \ --client-id-file client_secret.json \ --scopes="https://www.googleapis.com/auth/devstorage.read_write,https://www.googleapis.com/auth/gmail.labels,https://www.googleapis.com/auth/gmail.settings.basic"
-
Copy the credentials file to the
GOOGLE_CREDENTIALS
GitHub secret