Skip to content

Commit 5a084a0

Browse files
committed
Add tags to resources and adjust table level config.
1 parent 64330b7 commit 5a084a0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

terraform/etl/49-lambda-gov-notify-ingestion-housing-lbh-communal-repairs.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ 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
2223
}
2324

2425
resource "aws_iam_role_policy_attachment" "gov_notify_housing_communal_repairs_lambda_secret_access" {
2526
count = local.create_govnotify_resource_count
2627
role = aws_iam_role.housing_gov_notify_ingestion[0].name
2728
policy_arn = aws_iam_policy.gov_notify_housing_communal_repairs_lambda_secret_access[0].arn
29+
tags = module.tags.values
2830
}
2931

3032
module "gov-notify-ingestion-housing-communal-repairs" {
@@ -71,13 +73,15 @@ resource "aws_lambda_permission" "allow_cloudwatch_to_call_govnotify_housing_lbh
7173
function_name = module.gov-notify-ingestion-housing-communal-repairs[0].lambda_function_arn
7274
principal = "events.amazonaws.com"
7375
source_arn = aws_cloudwatch_event_rule.govnotify_housing_lbh_communal_repairs_trigger_event[0].arn
76+
tags = module.tags.values
7477
}
7578

7679
resource "aws_cloudwatch_event_target" "govnotify_housing_lbh_communal_repairs_trigger_event_target" {
7780
count = local.create_govnotify_resource_count
7881
rule = aws_cloudwatch_event_rule.govnotify_housing_lbh_communal_repairs_trigger_event[0].name
7982
target_id = "govnotify-housing-communal-repairs-event-target"
8083
arn = module.gov-notify-ingestion-housing-communal-repairs[0].lambda_function_arn
84+
tags = module.tags.values
8185
input = <<EOF
8286
{
8387
"table_names": ${jsonencode(local.govnotify_tables_housing_communal_repairs)}
@@ -124,7 +128,7 @@ resource "aws_glue_crawler" "govnotify_housing_lbh_communal_repairs_raw_zone" {
124128
configuration = jsonencode({
125129
Version = 1.0
126130
Grouping = {
127-
TableLevelConfiguration = 4
131+
TableLevelConfiguration = 5
128132
}
129133
})
130134
}

0 commit comments

Comments
 (0)