Skip to content

Commit 8682153

Browse files
authored
Merge pull request #42 from tymnicholas/main
added new flag for permission to update Lambda event source mapping
2 parents 2a28818 + c74e66c commit 8682153

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

data.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ data "aws_iam_policy_document" "update_lambda" {
5959
}
6060

6161
dynamic "statement" {
62-
for_each = var.enable_version_identifier ? [1] : []
62+
for_each = var.enable_lambda_update_evt_src_mapping ? [1] : []
6363
content {
6464
sid = "AllowLambdaUpdateEvtSrcMapping"
6565
actions = [

variables.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,3 +470,10 @@ variable "apigw_id" {
470470
type = string
471471
default = null
472472
}
473+
474+
# to allow deployments with other lambda triggers and update version whenever there is new deployment
475+
variable "enable_lambda_update_evt_src_mapping" {
476+
description = "Enable Lambda function to update it's event source mapping when there is a new deployment"
477+
type = bool
478+
default = false
479+
}

0 commit comments

Comments
 (0)