Skip to content

Commit 0bfa34d

Browse files
CCM-18334: Bump Eventpub to 4.0.10 and add KMS perms to Eventsub local module
1 parent 8d813b0 commit 0bfa34d

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

infrastructure/terraform/components/api/modules_eventpub.tf

Lines changed: 1 addition & 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/3.0.6/terraform-eventpub.zip"
2+
source = "https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/4.0.10/terraform-eventpub.zip"
33

44
name = "eventpub"
55

infrastructure/terraform/modules/eventsub/iam_role_sns.tf

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,17 @@ data "aws_iam_policy_document" "firehose_delivery" {
4848
"${aws_kinesis_firehose_delivery_stream.main[0].arn}",
4949
]
5050
}
51+
statement {
52+
sid = "AllowKmsAccessForFirehoseDelivery"
53+
effect = "Allow"
54+
55+
actions = [
56+
"kms:GenerateDataKey",
57+
"kms:Decrypt",
58+
]
59+
60+
resources = [
61+
var.kms_key_arn,
62+
]
63+
}
5164
}

0 commit comments

Comments
 (0)