Skip to content

Commit

Permalink
Conditionally set attach_policy_jsons input
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerHendrickson committed Jan 9, 2024
1 parent d93e241 commit c66bfab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions terraform/functions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ module "lambda_function-graphql" {
role_permissions_boundary = local.permissions_boundary_arn
attach_cloudwatch_logs_policy = true
cloudwatch_logs_retention_in_days = var.log_retention_in_days
attach_policy_jsons = true
attach_policy_jsons = length(local.lambda_default_execution_policies) > 0
number_of_policy_jsons = length(local.lambda_default_execution_policies)
policy_jsons = local.lambda_default_execution_policies
attach_policy_statements = true
Expand Down Expand Up @@ -304,7 +304,7 @@ module "lambda_function-excelToJson" {
role_permissions_boundary = local.permissions_boundary_arn
attach_cloudwatch_logs_policy = true
cloudwatch_logs_retention_in_days = var.log_retention_in_days
attach_policy_jsons = true
attach_policy_jsons = length(local.lambda_default_execution_policies) > 0
number_of_policy_jsons = length(local.lambda_default_execution_policies)
attach_policy_statements = true
policy_statements = {
Expand Down Expand Up @@ -374,7 +374,7 @@ module "lambda_function-cpfValidation" {
role_permissions_boundary = local.permissions_boundary_arn
attach_cloudwatch_logs_policy = true
cloudwatch_logs_retention_in_days = var.log_retention_in_days
attach_policy_jsons = true
attach_policy_jsons = length(local.lambda_default_execution_policies) > 0
number_of_policy_jsons = length(local.lambda_default_execution_policies)
attach_policy_statements = true
policy_statements = {
Expand Down

0 comments on commit c66bfab

Please sign in to comment.