File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff 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 = [
Original file line number Diff line number Diff 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+ }
You can’t perform that action at this time.
0 commit comments