-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmain.tf
38 lines (32 loc) · 917 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
26
27
28
29
30
31
32
33
34
35
36
37
38
resource "humanitec_resource_definition" "main" {
driver_type = "humanitec/terraform"
id = "${var.prefix}gcs-basic"
name = "${var.prefix}gcs-basic"
type = "gcs"
driver_account = var.driver_account
driver_inputs = {
values_string = jsonencode({
source = {
path = "modules/gcs/basic"
rev = var.resource_packs_gcp_rev
url = var.resource_packs_gcp_url
}
append_logs_to_error = var.append_logs_to_error
credentials_config = {
environment = {
GOOGLE_CREDENTIALS = "*"
}
}
variables = {
prefix = var.prefix
name = var.name
res_id = "$${context.res.id}"
app_id = "$${context.app.id}"
env_id = "$${context.env.id}"
project = var.project
force_destroy = var.force_destroy
location = var.location
}
})
}
}