diff --git a/README.md b/README.md index 8da63311..8f4bcc43 100644 --- a/README.md +++ b/README.md @@ -144,6 +144,7 @@ See the [functions](https://github.com/terraform-aws-modules/terraform-aws-notif | [subscription\_filter\_policy](#input\_subscription\_filter\_policy) | (Optional) A valid filter policy that will be used in the subscription to filter messages seen by the target resource. | `string` | `null` | no | | [subscription\_filter\_policy\_scope](#input\_subscription\_filter\_policy\_scope) | (Optional) A valid filter policy scope MessageAttributes\|MessageBody | `string` | `null` | no | | [tags](#input\_tags) | A map of tags to add to all resources | `map(string)` | `{}` | no | +| [trigger\_on\_package\_timestamp](#input\_trigger\_on\_package\_timestamp) | (Optional) Whether or not to ignore the file timestamp when deciding to create the archive | `bool` | `false` | no | ## Outputs diff --git a/main.tf b/main.tf index f533456c..401d33ce 100644 --- a/main.tf +++ b/main.tf @@ -97,6 +97,7 @@ module "lambda" { kms_key_arn = var.kms_key_arn reserved_concurrent_executions = var.reserved_concurrent_executions ephemeral_storage_size = var.lambda_function_ephemeral_storage_size + trigger_on_package_timestamp = var.trigger_on_package_timestamp # If publish is disabled, there will be "Error adding new Lambda Permission for notify_slack: # InvalidParameterValueException: We currently do not support adding policies for $LATEST." diff --git a/variables.tf b/variables.tf index ebb318f1..75813fc0 100644 --- a/variables.tf +++ b/variables.tf @@ -281,3 +281,9 @@ variable "subscription_filter_policy_scope" { type = string default = null } + +variable "trigger_on_package_timestamp" { + description = "(Optional) Whether or not to ignore the file timestamp when deciding to create the archive" + type = bool + default = false +}