-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprovider.tf
22 lines (20 loc) · 1.12 KB
/
provider.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
terraform{
required_providers {
google = {
source = "hashicorp/google"
version = "5.18.0"
}
}
backend "gcs" {
# bucket = "your-gcp-bucket-name" # Provide your GCP bucket name, if you save the ".tfstate" statefile on cloud storage instead of saving locally
# prefix = "directory-inside-your-gcp-bucket" # Provide the directory within your GCP bucket, if you save the ".tfstate" statefile on cloud storage instead of saving locally
credentials = "./cred.json" # Create GCP credentials file and put in the main foler, renaming as "cred.json"
}
}
# Set the project details according to the GCP cloud console
provider "google" {
project = "your-project-id" # GCP project name
region = "your-project-region" # GCP project region
zone = "your-project-zone" # GCP project zone
credentials = "./cred.json" # Service Account Key
}