Skip to content

Commit 86ab10a

Browse files
committed
Adding test var to examples
1 parent 9d01677 commit 86ab10a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

examples/complete/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ module "lambda" {
8383
runtime = var.runtime
8484
iam_policy_description = var.iam_policy_description
8585
ephemeral_storage_size = var.ephemeral_storage_size
86+
source_mapping_enabled = var.source_mapping_enabled
8687

8788
custom_iam_policy_arns = [
8889
"arn:aws:iam::aws:policy/job-function/ViewOnlyAccess",

examples/complete/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,9 @@ variable "ephemeral_storage_size" {
3131
description = "The amount of storage available to the function at runtime. Defaults to 512."
3232
default = 512
3333
}
34+
35+
variable "source_mapping_enabled" {
36+
type = bool
37+
description = "Enables the source mapping to set a Kinesis stream, a DynamoDB stream, or SQS queue as trigger for lambda."
38+
default = false
39+
}

0 commit comments

Comments
 (0)