Skip to content

Commit a714c75

Browse files
CCM-18334: Eventpub and Eventsub CMK Encrypted Firehose Perms (#632)
* CCM-18334: Bump Eventpub to 4.0.10 and add KMS perms to Eventsub local module * CCM-18334: Bump Eventpub to 4.0.10 and add KMS perms to Eventsub local module
1 parent 8d813b0 commit a714c75

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

infrastructure/terraform/components/api/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ No requirements.
6767
| <a name="module_ddb_alarms_mi"></a> [ddb\_alarms\_mi](#module\_ddb\_alarms\_mi) | ../../modules/alarms-ddb | n/a |
6868
| <a name="module_ddb_alarms_suppliers"></a> [ddb\_alarms\_suppliers](#module\_ddb\_alarms\_suppliers) | ../../modules/alarms-ddb | n/a |
6969
| <a name="module_domain_truststore"></a> [domain\_truststore](#module\_domain\_truststore) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/3.0.6/terraform-s3bucket.zip | n/a |
70-
| <a name="module_eventpub"></a> [eventpub](#module\_eventpub) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/3.0.6/terraform-eventpub.zip | n/a |
70+
| <a name="module_eventpub"></a> [eventpub](#module\_eventpub) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/4.0.10/terraform-eventpub.zip | n/a |
7171
| <a name="module_eventsub"></a> [eventsub](#module\_eventsub) | ../../modules/eventsub | n/a |
7272
| <a name="module_get_letter"></a> [get\_letter](#module\_get\_letter) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/4.0.2/terraform-lambda.zip | n/a |
7373
| <a name="module_get_letter_data"></a> [get\_letter\_data](#module\_get\_letter\_data) | https://github.com/NHSDigital/nhs-notify-shared-modules/releases/download/4.0.2/terraform-lambda.zip | n/a |

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)