forked from terramate-io/terramate-example-code-generation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.tm.hcl
41 lines (32 loc) · 1.59 KB
/
config.tm.hcl
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
# This file is part of Terramate Configuration.
# Terramate is an orchestrator and code generator for Terraform.
# Please see https://github.com/terramate-io/terramate for more information.
#
# To generate/update Terraform code within the stacks
# run `terramate generate` from root directory of the repository.
globals {
### TERRAFORM ###############################################################
### global variables for use when generating providers
# all variables defined here can be overwritten in any sub-directory and on the
# stack level
# The global terraform version to use
terraform_version = "~> 1.0"
# provider settings and defaults
terraform_google_provider_version = "~> 4.0"
terraform_google_provider_region = "us-central1"
# this should be adjusted when testing actual deployments
terraform_google_provider_project = "runme-cloud-renderers"
### global variables for use when generating backend
# all variables defined here can be overwritten in any sub-directory and on the
# stack level
# to demonstrate how to use gloabls in backend configuration
# the same way you could define state buckets and path within the bucket
# e.g. setting prefix to terramate.path
# we use terraforms default for local backends here
local_tfstate_path = "terraform.tfstate"
### GLOBALS ##################################################################
# global variables for use in terraform code within stacks
# we use providers project and location by default
project = global.terraform_google_provider_project
location = global.terraform_google_provider_region
}