Skip to content

Commit 5a2d3dd

Browse files
committed
rm msg group id prefix
1 parent fe1149b commit 5a2d3dd

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

infrastructure/terraform/modules/backend-api/locals.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,4 @@ locals {
5757
][0], "")
5858

5959
sftp_environment = "${var.group}-${var.environment}-${var.component}"
60-
61-
db_entity_shortnames = {
62-
"routing_config" = "rc"
63-
"template" = "tm"
64-
}
6560
}

infrastructure/terraform/modules/backend-api/pipes_pipe_routing_config_table_events.tf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,12 @@ resource "aws_pipes_pipe" "routing_config_table_events" {
3030
"eventID": <$.eventID>,
3131
"eventName": <$.eventName>,
3232
"eventSource": <$.eventSource>,
33-
"tableName": "${aws_dynamodb_table.routing_configuration.name}",
34-
"prefixedGroupId": "${local.db_entity_shortnames["routing_config"]}:<$.dynamodb.Keys.id.S>"
33+
"tableName": "${aws_dynamodb_table.routing_configuration.name}"
3534
}
3635
EOF
3736

3837
sqs_queue_parameters {
39-
message_group_id = "$.prefixedGroupId"
38+
message_group_id = "<$.dynamodb.Keys.id.S>"
4039
message_deduplication_id = "$.eventID"
4140
}
4241
}

infrastructure/terraform/modules/backend-api/pipes_pipe_template_table_events.tf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,12 @@ resource "aws_pipes_pipe" "template_table_events" {
3030
"eventID": <$.eventID>,
3131
"eventName": <$.eventName>,
3232
"eventSource": <$.eventSource>,
33-
"tableName": "${aws_dynamodb_table.templates.name}",
34-
"prefixedGroupId": "${local.db_entity_shortnames["template"]}:<$.dynamodb.Keys.id.S>"
33+
"tableName": "${aws_dynamodb_table.templates.name}"
3534
}
3635
EOF
3736

3837
sqs_queue_parameters {
39-
message_group_id = "$.prefixedGroupId"
38+
message_group_id = "<$.dynamodb.Keys.id.S>"
4039
message_deduplication_id = "$.eventID"
4140
}
4241
}

0 commit comments

Comments
 (0)