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 @@ -92,7 +92,8 @@ module "lambda" {
92
92
LOG_EVENTS = var.log_events ? " True" : " False"
93
93
}
94
94
95
- create_role = true
95
+ create_role = var. lambda_role == " "
96
+ lambda_role = var. lambda_role
96
97
role_name = " ${ var . iam_role_name_prefix } -${ var . lambda_function_name } "
97
98
role_permissions_boundary = var. iam_role_boundary_policy_arn
98
99
role_tags = var. iam_role_tags
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ variable "create_sns_topic" {
10
10
default = true
11
11
}
12
12
13
+ variable "lambda_role" {
14
+ description = " IAM role attached to the Lambda Function. If this is set then a role will not be created for you."
15
+ type = string
16
+ default = " "
17
+ }
18
+
13
19
variable "lambda_function_name" {
14
20
description = " The name of the Lambda function to create"
15
21
type = string
You can’t perform that action at this time.
0 commit comments