Skip to content

Commit 3fc6f4f

Browse files
authored
Merge pull request #9 from SPHTech-Platform/feature/add-cloudwatch-log-retention
Bugfix: Added policy statements attachment flag
2 parents 252420a + 510ee22 commit 3fc6f4f

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

Diff for: main.tf

+5-4
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@ module "lambda" {
5050
authorization_type = var.authorization_type
5151
cors = var.cors
5252

53-
role_name = var.role_name
54-
attach_policy_jsons = var.attach_policy_jsons
55-
attach_policy_json = var.attach_policy_json
56-
attach_network_policy = var.attach_network_policy
53+
role_name = var.role_name
54+
attach_policy_jsons = var.attach_policy_jsons
55+
attach_policy_json = var.attach_policy_json
56+
attach_policy_statements = var.attach_policy_statements
57+
attach_network_policy = var.attach_network_policy
5758

5859
ignore_source_code_hash = true
5960

Diff for: variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,12 @@ variable "policy_jsons" {
243243
default = []
244244
}
245245

246+
variable "attach_policy_statements" {
247+
description = "Controls whether policy_jsons should be added to IAM role for Lambda Function"
248+
type = bool
249+
default = false
250+
}
251+
246252
variable "policy_statements" {
247253
description = "Additional Inline Lambda Policy Statements"
248254
type = any

0 commit comments

Comments
 (0)