-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
58 lines (38 loc) · 1.11 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# *Main Providers and pre-requisites
data "google_client_config" "default" {}
terraform {
required_version = ">= 0.15.0"
required_providers {
google-beta = {
version = "~> 3.50"
} # https://github.com/terraform-providers/terraform-provider-google/releases
google = {
version = "~> 3.50"
} # https://github.com/terraform-providers/terraform-provider-google-beta/releases
null = {
version = "~> 3.1"
} # https://github.com/hashicorp/terraform-provider-null/releases
}
# # GCS Backend Exemple: State module_exemple
# backend "gcs" {
# bucket = "tf_states-modules"
# path = "modules/module-exemple.tfstate"
# }
# Local Backend Exemple: State module_exemple
backend "local" {
path = "./tfstate_local.tfstate"
}
}
# Official Google Cloud Provider for Beta Resources & Features
provider "google-beta" {
project = var.gcp_project_id
region = var.region
}
# Official Google Cloud Provider for GA Resources & Features
provider "google" {
project = var.gcp_project_id
region = var.region
}
# Provider for Null Resources
provider "null" {
}