File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
infrastructure/terraform/components/dl Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 1+ resource "aws_cloudwatch_event_rule" "mesh_inbox_message_dowloaded" {
2+ name = " ${ local . csi } -mesh-inbox-message-dowloaded"
3+ description = " MESH inbox message downlowed event rule"
4+ event_bus_name = aws_cloudwatch_event_bus. main . name
5+
6+ event_pattern = jsonencode ({
7+ " detail" : {
8+ " type" : [
9+ " uk.nhs.notify.digital.letters.mesh.inbox.message.downloaded.v1"
10+ ],
11+ " dataschemaversion" : [{
12+ " prefix" : " 1."
13+ }]
14+ }
15+ })
16+ }
17+
18+ resource "aws_cloudwatch_event_target" "mesh_inbox_message_dowloaded" {
19+ rule = aws_cloudwatch_event_rule. mesh_inbox_message_dowloaded . name
20+ arn = module. sqs_ttl . sqs_queue_arn
21+ target_id = " mesh-inbox-message-dowloaded-target"
22+ event_bus_name = aws_cloudwatch_event_bus. main . name
23+ }
You can’t perform that action at this time.
0 commit comments