Skip to content

Commit ae3423e

Browse files
CCM-14600: Enable Access Logging for EventCache Buckets
1 parent e75446d commit ae3423e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

infrastructure/terraform/components/api/modules_eventpub.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module "eventpub" {
2-
source = "https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/v2.0.31/terraform-eventpub.zip"
2+
source = "git::https://github.com/NHSDigital/nhs-notify-shared-modules.git//terraform-eventpub?ref=feature/CCM-14600_Enable_Access_Logging_For_EventCache_Buckets"
33

44
name = "eventpub"
55

@@ -28,6 +28,10 @@ module "eventpub" {
2828
data_plane_bus_arn = var.eventpub_data_plane_bus_arn
2929
control_plane_bus_arn = var.eventpub_control_plane_bus_arn
3030

31+
eventcache_bucket_logging_target = {
32+
bucket = local.acct.s3_buckets["access_logs"]["id"]
33+
}
34+
3135
additional_policies_for_event_cache_bucket = [
3236
data.aws_iam_policy_document.eventcache[0].json
3337
]

0 commit comments

Comments
 (0)