Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ data "aws_iam_policy_document" "update_lambda" {
}

dynamic "statement" {
for_each = var.enable_version_identifier ? [1] : []
for_each = var.enable_lambda_update_evt_src_mapping ? [1] : []
content {
sid = "AllowLambdaUpdateEvtSrcMapping"
actions = [
Expand Down
7 changes: 7 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -470,3 +470,10 @@ variable "apigw_id" {
type = string
default = null
}

# to allow deployments with other lambda triggers and update version whenever there is new deployment
variable "enable_lambda_update_evt_src_mapping" {
description = "Enable Lambda function to update it's event source mapping when there is a new deployment"
type = bool
default = false
}
Loading