Skip to content

Commit 59721fa

Browse files
committed
added description
1 parent 56a9f44 commit 59721fa

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@
8080
| <a name="input_lambda_at_edge"></a> [lambda\_at\_edge](#input\_lambda\_at\_edge) | Set this to true if using Lambda@Edge, to enable publishing, limit the timeout, and allow edgelambda.amazonaws.com to invoke the function | `bool` | `false` | no |
8181
| <a name="input_lambda_role"></a> [lambda\_role](#input\_lambda\_role) | IAM role ARN attached to the Lambda Function. This governs both who / what can invoke your Lambda Function, as well as what resources our Lambda Function has access to. See Lambda Permission Model for more details. | `string` | `""` | no |
8282
| <a name="input_layers"></a> [layers](#input\_layers) | List of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function. | `list(string)` | `null` | no |
83-
| <a name="input_logging_application_log_level"></a> [logging\_application\_log\_level](#input\_logging\_application\_log\_level) | n/a | `string` | `null` | no |
84-
| <a name="input_logging_log_format"></a> [logging\_log\_format](#input\_logging\_log\_format) | n/a | `string` | `"Text"` | no |
85-
| <a name="input_logging_log_group"></a> [logging\_log\_group](#input\_logging\_log\_group) | n/a | `string` | `null` | no |
86-
| <a name="input_logging_system_log_level"></a> [logging\_system\_log\_level](#input\_logging\_system\_log\_level) | n/a | `string` | `null` | no |
83+
| <a name="input_logging_application_log_level"></a> [logging\_application\_log\_level](#input\_logging\_application\_log\_level) | The application log level of your lambda | `string` | `null` | no |
84+
| <a name="input_logging_log_format"></a> [logging\_log\_format](#input\_logging\_log\_format) | Logging format of your lambda | `string` | `"Text"` | no |
85+
| <a name="input_logging_log_group"></a> [logging\_log\_group](#input\_logging\_log\_group) | Log group that your lambda will use | `string` | `null` | no |
86+
| <a name="input_logging_system_log_level"></a> [logging\_system\_log\_level](#input\_logging\_system\_log\_level) | System log level of your lambda | `string` | `null` | no |
8787
| <a name="input_managed_policy_arns"></a> [managed\_policy\_arns](#input\_managed\_policy\_arns) | List of AWS managed policies to attach to IAM role for Lambda Function | `list(string)` | `null` | no |
8888
| <a name="input_memory_size"></a> [memory\_size](#input\_memory\_size) | Amount of memory in MB your Lambda Function can use at runtime. Valid value between 128 MB to 10,240 MB (10 GB), in 64 MB increments. | `number` | `128` | no |
8989
| <a name="input_number_of_managed_policies"></a> [number\_of\_managed\_policies](#input\_number\_of\_managed\_policies) | Number of AWS managed policies to attach to IAM role for Lambda Function | `number` | `0` | no |

variables.tf

+12-9
Original file line numberDiff line numberDiff line change
@@ -238,32 +238,35 @@ variable "source_path" {
238238
}
239239

240240
variable "logging_application_log_level" {
241-
type = string
242-
default = null
241+
type = string
242+
description = "The application log level of your lambda"
243+
default = null
243244
validation {
244245
condition = var.logging_application_log_level == null ? true : contains(["TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL"], var.logging_application_log_level)
245246
error_message = "Valid values for logging_info.application_log_level are (TRACE, DEBUG, INFO, WARN, ERROR, FATAL)."
246247
}
247248
}
248249

249250
variable "logging_log_format" {
250-
type = string
251-
default = "Text"
252-
251+
type = string
252+
description = "Logging format of your lambda"
253+
default = "Text"
253254
validation {
254255
condition = contains(["JSON", "Text"], var.logging_log_format)
255256
error_message = "Valid values for logging_info.log_format are (JSON, Text)."
256257
}
257258
}
258259

259260
variable "logging_log_group" {
260-
type = string
261-
default = null
261+
type = string
262+
description = "Log group that your lambda will use"
263+
default = null
262264
}
263265

264266
variable "logging_system_log_level" {
265-
type = string
266-
default = null
267+
type = string
268+
description = "System log level of your lambda"
269+
default = null
267270
validation {
268271
condition = var.logging_system_log_level == null ? true : contains(["DEBUG", "INFO", "WARN", null], var.logging_system_log_level)
269272
error_message = "Valid values for logging_info.system_log_level are (DEBUG, INFO, WARN)."

0 commit comments

Comments
 (0)