Skip to content

Commit b3016e2

Browse files
authored
feat: Add variable to allow disabling the package timestamp trigger (#233)
1 parent 1a75068 commit b3016e2

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ See the [functions](https://github.com/terraform-aws-modules/terraform-aws-notif
144144
| <a name="input_subscription_filter_policy"></a> [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 |
145145
| <a name="input_subscription_filter_policy_scope"></a> [subscription\_filter\_policy\_scope](#input\_subscription\_filter\_policy\_scope) | (Optional) A valid filter policy scope MessageAttributes\|MessageBody | `string` | `null` | no |
146146
| <a name="input_tags"></a> [tags](#input\_tags) | A map of tags to add to all resources | `map(string)` | `{}` | no |
147+
| <a name="input_trigger_on_package_timestamp"></a> [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 |
147148

148149
## Outputs
149150

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ module "lambda" {
9797
kms_key_arn = var.kms_key_arn
9898
reserved_concurrent_executions = var.reserved_concurrent_executions
9999
ephemeral_storage_size = var.lambda_function_ephemeral_storage_size
100+
trigger_on_package_timestamp = var.trigger_on_package_timestamp
100101

101102
# If publish is disabled, there will be "Error adding new Lambda Permission for notify_slack:
102103
# InvalidParameterValueException: We currently do not support adding policies for $LATEST."

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,3 +281,9 @@ variable "subscription_filter_policy_scope" {
281281
type = string
282282
default = null
283283
}
284+
285+
variable "trigger_on_package_timestamp" {
286+
description = "(Optional) Whether or not to ignore the file timestamp when deciding to create the archive"
287+
type = bool
288+
default = false
289+
}

0 commit comments

Comments
 (0)