File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ locals {
45
45
}
46
46
}
47
47
resource "aws_cloudwatch_event_bus" "this" {
48
- name = var. event_bridge_name
48
+ name = var. event_bridge_name
49
+ kms_key_identifier = var. kms_key_id
49
50
}
50
51
51
52
resource "aws_schemas_discoverer" "this" {
@@ -285,4 +286,4 @@ resource "aws_cloudwatch_event_target" "posted_queue" {
285
286
dead_letter_config {
286
287
arn = aws_sqs_queue. dlq . arn
287
288
}
288
- }
289
+ }
Original file line number Diff line number Diff line change @@ -50,4 +50,10 @@ variable "state_machine_arn" {
50
50
type = string
51
51
default = " "
52
52
description = " Pass the State Machine arn"
53
- }
53
+ }
54
+
55
+ variable "kms_key_identifier" {
56
+ description = " Pass the ARN of the KMS Key Id for CMK"
57
+ type = string
58
+ default = null
59
+ }
Original file line number Diff line number Diff line change @@ -230,6 +230,7 @@ module "dynamodb" {
230
230
module "event_bridge" {
231
231
source = " ./event_bridge"
232
232
event_bridge_name = var. event_bridge_name
233
+ kms_key_id = module. kms . key_arn
233
234
posting_queue_arn = module. posting_queue . arn
234
235
posted_queue_arn = module. posted_queue . arn
235
236
enrich_lambda_arn = module. enrich_lambda . arn
You can’t perform that action at this time.
0 commit comments