-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.tf
25 lines (23 loc) · 926 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# ---------------------------------------------------------------------------------------------------------------------
# PROVIDE CREDENTIALS TO PROVIDER
# Credentials are stored in terraform.tfvars file.
# ---------------------------------------------------------------------------------------------------------------------
terraform {
required_providers {
googleworkspace = {
source = "hashicorp/googleworkspace"
version = "0.7.0"
}
}
}
provider "googleworkspace" {
customer_id = var.gworkspace_customer_id
impersonated_user_email = var.gworkspace_email
credentials = var.gworkspace_credentials
oauth_scopes = [
"https://www.googleapis.com/auth/admin.directory.group",
"https://www.googleapis.com/auth/apps.groups.settings",
"https://www.googleapis.com/auth/admin.directory.user",
"https://www.googleapis.com/auth/admin.directory.userschema",
]
}