Skip to content

Commit d670531

Browse files
authored
fix: updated some variable descriptions (#40)
1 parent e4b4e9e commit d670531

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

solutions/apps/variables.tf

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
variable "ibmcloud_api_key" {
66
type = string
7-
description = "The IBM Cloud API Key"
7+
description = "The IBM Cloud API key."
88
sensitive = true
99
}
1010

1111
variable "region" {
1212
type = string
13-
description = "Region to provision all resources created by this solution."
13+
description = "The region in which to provision all resources created by this solution."
1414
default = "us-south"
1515
}
1616

@@ -22,17 +22,17 @@ variable "existing_resource_group" {
2222

2323
variable "resource_group_name" {
2424
type = string
25-
description = "The name of a new or an existing resource group in which to provision the IBM Code Engine resources in."
25+
description = "The name of a new or an existing resource group to provision the IBM Cloud Code Engine resources to."
2626
}
2727

2828
variable "project_name" {
29-
description = "The name of the project to which code engine resources will be added. It is required if var.existing_project_id is null."
29+
description = "The name of the project to add the IBM Cloud Code Engine resources to. If the value of `var.existing_project_id` is `null`, the project name is required."
3030
type = string
3131
default = null
3232
}
3333

3434
variable "existing_project_id" {
35-
description = "The ID of the existing project to which code engine resources will be added. It is required if var.project_name is null."
35+
description = "The ID of the existing project to add the IBM Cloud Code Engine resources to. If the value of `var.project_name` is `null`, the project ID is required."
3636
type = string
3737
default = null
3838
}
@@ -48,13 +48,13 @@ variable "image_reference" {
4848
}
4949

5050
variable "image_secret" {
51-
description = "The name of the image registry access secret."
51+
description = "The name of the access secret that is used for the image registry."
5252
type = string
5353
default = null
5454
}
5555

5656
variable "run_env_variables" {
57-
description = "References to config maps, secrets or a literal values that are exposed as environment variables within the running application."
57+
description = "References to configmaps, secrets, or literal values that are displayed as environment variables within the running application."
5858
type = list(object({
5959
type = optional(string)
6060
name = optional(string)
@@ -67,7 +67,7 @@ variable "run_env_variables" {
6767
}
6868

6969
variable "run_volume_mounts" {
70-
description = "Optional mounts of config maps or a secrets."
70+
description = "Optional. Mount targets for configmaps or secrets."
7171
type = list(object({
7272
mount_path = string
7373
reference = string
@@ -78,19 +78,19 @@ variable "run_volume_mounts" {
7878
}
7979

8080
variable "image_port" {
81-
description = "The port which is used to connect to the port that is exposed by the container image."
81+
description = "The port number that is used to connect to the port displayed by the container image."
8282
type = number
8383
default = 8080
8484
}
8585

8686
variable "managed_domain_mappings" {
87-
description = "Define which of the system managed domain mappings will be setup for the application. Valid values are 'local_public', 'local_private' and 'local'."
87+
description = "Specify which of the following values for the system-managed domain mappings to set up for the application: `local_public`, `local_private`, and `local`."
8888
type = string
8989
default = null
9090
}
9191

9292
variable "run_arguments" {
93-
description = "Arguments for the app that are passed to start the container."
93+
description = "The arguments for the app that are passed to start the container."
9494
type = list(string)
9595
default = []
9696
}
@@ -102,7 +102,7 @@ variable "run_as_user" {
102102
}
103103

104104
variable "run_commands" {
105-
description = "Commands for the app that are passed to start the container."
105+
description = "The commands for the app that are passed to start the container."
106106
type = list(string)
107107
default = []
108108
}
@@ -120,13 +120,13 @@ variable "scale_concurrency" {
120120
}
121121

122122
variable "scale_concurrency_target" {
123-
description = "The threshold of concurrent requests per instance at which one or more additional instances are created."
123+
description = "The threshold of concurrent requests per instance at which one or more extra instances are created."
124124
type = number
125125
default = null
126126
}
127127

128128
variable "scale_cpu_limit" {
129-
description = "The number of CPU set for the instance of the app."
129+
description = "The number of CPUs to set for the instance of the app."
130130
type = string
131131
default = "1"
132132
}
@@ -138,13 +138,13 @@ variable "scale_ephemeral_storage_limit" {
138138
}
139139

140140
variable "scale_initial_instances" {
141-
description = "The initial number of instances that are created upon app creation or app update."
141+
description = "The initial number of instances that are created during app creation or app update."
142142
type = number
143143
default = 1
144144
}
145145

146146
variable "scale_max_instances" {
147-
description = "The maximum number of instances for this app."
147+
description = "The maximum number of instances for the app."
148148
type = number
149149
default = 10
150150
}
@@ -156,27 +156,27 @@ variable "scale_memory_limit" {
156156
}
157157

158158
variable "scale_min_instances" {
159-
description = "The minimum number of instances for this app. If you set this value to 0, the app will scale down to zero, if not hit by any request for some time."
159+
description = "The minimum number of instances for the app. If you set this value to `0` and the app does not receive any requests, it will scale down to zero instances."
160160
type = number
161161
default = 0
162162
}
163163

164164
variable "scale_request_timeout" {
165-
description = "The amount of time in seconds that is allowed for a running app to respond to a request."
165+
description = "The amount of time in seconds during which a running app can respond to a request."
166166
type = number
167167
default = 300
168168
}
169169

170170
variable "config_maps" {
171-
description = "A map of code engine config maps to be created. Example: { configmap_name: {data: {key_1: 'value_1' }}}"
171+
description = "A map of the IBM Cloud Code Engine configmaps to create. For example, `{ configmap_name: {data: {key_1: 'value_1' }}}`."
172172
type = map(object({
173173
data = map(string)
174174
}))
175175
default = {}
176176
}
177177

178178
variable "secrets" {
179-
description = "A map of code engine secrets to be created. Example: { secret_name: {format: 'generic', data: {key_1: 'value_1' }}}"
179+
description = "A map of the IBM Cloud Code Engine secrets to create. For example, `{ secret_name: {format: 'generic', data: {key_1: 'value_1' }}}`."
180180
type = map(object({
181181
format = string
182182
data = map(string)
@@ -197,7 +197,7 @@ variable "secrets" {
197197
}
198198

199199
variable "domain_mappings" {
200-
description = "A map of code engine domain mappings to be created. Example: { domain_mapping_name: {tls_secret: 'tls_secret_name', components: [{ name : 'app_name', resource_type: 'app_v2'}]}}" # pragma: allowlist secret
200+
description = "A map of the IBM Cloud Code Engine domain mappings to create. For example, `{ domain_mapping_name: {tls_secret: 'tls_secret_name', components: [{ name : 'app_name', resource_type: 'app_v2'}]}}`." # pragma: allowlist secret
201201
type = map(object({
202202
tls_secret = string # pragma: allowlist secret
203203
components = list(object({
@@ -209,7 +209,7 @@ variable "domain_mappings" {
209209
}
210210

211211
variable "bindings" {
212-
description = "A map of code engine bindings to be created. Example: { 'PREFIX': {secret_name: 'secret_name', components: [{ name : 'app_name', resource_type: 'app_v2'}]}}"
212+
description = "A map of the IBM Cloud Code Engine bindings to create. For example, `{ 'PREFIX': {secret_name: 'secret_name', components: [{ name : 'app_name', resource_type: 'app_v2'}]}}`."
213213
type = map(object({
214214
secret_name = string
215215
components = list(object({

0 commit comments

Comments
 (0)