@@ -19,14 +19,12 @@ resource "aws_iam_policy" "gov_notify_housing_communal_repairs_lambda_secret_acc
1919 count = local. create_govnotify_resource_count
2020 name = " gov_notify_housing_communal_repairs_lambda_secret_access"
2121 policy = data. aws_iam_policy_document . gov_notify_housing_communal_repairs_lambda_secret_access . json
22- tags = module. tags . values
2322}
2423
2524resource "aws_iam_role_policy_attachment" "gov_notify_housing_communal_repairs_lambda_secret_access" {
2625 count = local. create_govnotify_resource_count
2726 role = aws_iam_role. housing_gov_notify_ingestion [0 ]. name
2827 policy_arn = aws_iam_policy. gov_notify_housing_communal_repairs_lambda_secret_access [0 ]. arn
29- tags = module. tags . values
3028}
3129
3230module "gov-notify-ingestion-housing-communal-repairs" {
@@ -59,12 +57,12 @@ module "gov-notify-ingestion-housing-communal-repairs" {
5957}
6058
6159resource "aws_cloudwatch_event_rule" "govnotify_housing_lbh_communal_repairs_trigger_event" {
62- count = local. create_govnotify_resource_count
63- name = " ${ local . short_identifier_prefix } govnotify_housing_lbh_communal_repairs_trigger_event"
64- description = " Trigger event for Housing LBH Communal Repairs GovNotify API ingestion"
60+ count = local. create_govnotify_resource_count
61+ name = " ${ local . short_identifier_prefix } govnotify_housing_lbh_communal_repairs_trigger_event"
62+ description = " Trigger event for Housing LBH Communal Repairs GovNotify API ingestion"
63+ tags = module. tags . values
6564 schedule_expression = " cron(0 0 * * ? *)"
6665 is_enabled = local. is_production_environment ? true : false
67- tags = module. tags . values
6866}
6967
7068resource "aws_lambda_permission" "allow_cloudwatch_to_call_govnotify_housing_lbh_communal_repairs" {
@@ -73,7 +71,6 @@ resource "aws_lambda_permission" "allow_cloudwatch_to_call_govnotify_housing_lbh
7371 function_name = module. gov-notify-ingestion-housing-communal-repairs [0 ]. lambda_function_arn
7472 principal = " events.amazonaws.com"
7573 source_arn = aws_cloudwatch_event_rule. govnotify_housing_lbh_communal_repairs_trigger_event [0 ]. arn
76- tags = module. tags . values
7774}
7875
7976resource "aws_cloudwatch_event_target" "govnotify_housing_lbh_communal_repairs_trigger_event_target" {
0 commit comments