You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: terraform/modules/run-service/variables.tf
+25-15Lines changed: 25 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -1,28 +1,32 @@
1
+
variable"project" {
2
+
description="The ID of the project in which the resource belongs. If it is not provided, the provider project is used."
3
+
type=string
4
+
}
1
5
variable"region" {
2
6
default="us-central1"
3
7
type=string
4
8
}
5
-
variable"service_name" {
6
-
description="Optional: Can be used to create more than function from the same package"
7
-
type=string
8
-
default="report-api"
9
-
}
10
9
variable"environment" {
11
10
description="The 'Environment' that is being created/deployed. Applied as a suffix to many resources."
12
11
type=string
13
12
default="dev"
14
13
}
15
-
variable"source_directory" {
16
-
description="The folder of the package containing function that will be executed when the Google Cloud Function is triggered!"
14
+
variable"service_name" {
15
+
description="Optional: Can be used to create more than function from the same package"
17
16
type=string
18
17
}
19
18
variable"service_name" {
20
19
description="Optional: Can be used to create more than function from the same package"
21
20
type=string
22
21
}
22
+
variable"source_directory" {
23
+
description="The folder of the package containing function that will be executed when the Google Cloud Function is triggered!"
24
+
type=string
25
+
}
23
26
variable"entry_point" {
24
27
description="The entry point; This is either what is registered with 'http' or exported from the code as a handler!"
25
28
type=string
29
+
default="app"
26
30
}
27
31
variable"available_memory" {
28
32
default="1Gi"
@@ -34,11 +38,17 @@ variable "available_cpu" {
34
38
type=string
35
39
description="The amount of CPU for the Cloud Function"
36
40
}
37
-
variable"project" {
38
-
description="The ID of the project in which the resource belongs. If it is not provided, the provider project is used."
41
+
variable"ingress_settings" {
39
42
type=string
40
-
default="httparchive"
43
+
default="ALLOW_ALL"
44
+
description="String value that controls what traffic can reach the function. Allowed values are ALLOW_ALL, ALLOW_INTERNAL_AND_GCLB and ALLOW_INTERNAL_ONLY. Check ingress documentation to see the impact of each settings value. Changes to this field will recreate the cloud function."
41
45
}
46
+
variable"vpc_connector_egress_settings" {
47
+
type=string
48
+
default=null
49
+
description="The egress settings for the connector, controlling what traffic is diverted through it. Allowed values are ALL_TRAFFIC and PRIVATE_RANGES_ONLY. Defaults to PRIVATE_RANGES_ONLY. If unset, this field preserves the previously set value."
description="(Optional) The limit on the minimum number of function instances that may coexist at a given time."
64
+
type=number
65
+
default=0
66
+
}
52
67
variable"max_instances" {
53
68
default=2
54
69
type=number
55
70
description="(Optional) The limit on the maximum number of function instances that may coexist at a given time."
56
71
}
57
-
variable"min_instances" {
58
-
description="(Optional) The limit on the minimum number of function instances that may coexist at a given time."
59
-
type=number
60
-
default=1
61
-
}
62
72
variable"max_instance_request_concurrency" {
63
73
description="(Optional) The limit on the maximum number of requests that an instance can handle simultaneously. This can be used to control costs when scaling. Defaults to 1."
0 commit comments