Skip to content

Commit c3bd5b3

Browse files
committed
cleanup, rm extra client
1 parent d9be1f8 commit c3bd5b3

File tree

7 files changed

+54
-173
lines changed

7 files changed

+54
-173
lines changed

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,6 @@ data "aws_iam_policy_document" "set_file_virus_scan_status_for_upload" {
5151
]
5252
}
5353

54-
statement {
55-
sid = "AllowDynamoGSIAccess"
56-
effect = "Allow"
57-
58-
actions = [
59-
"dynamodb:Query",
60-
]
61-
62-
resources = [
63-
"${aws_dynamodb_table.templates.arn}/index/QueryById",
64-
]
65-
}
66-
6754
statement {
6855
sid = "AllowKMSAccessDynamoDB"
6956
effect = "Allow"

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

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,7 @@ data "aws_iam_policy_document" "upload_letter_template_lambda_policy" {
4848
aws_dynamodb_table.templates.arn,
4949
]
5050
}
51-
52-
statement {
53-
sid = "AllowDynamoGSIAccess"
54-
effect = "Allow"
55-
56-
actions = [
57-
"dynamodb:Query",
58-
]
59-
60-
resources = [
61-
"${aws_dynamodb_table.templates.arn}/index/QueryById",
62-
]
63-
}
64-
51+
6552
statement {
6653
sid = "AllowKMSAccess"
6754
effect = "Allow"

lambdas/backend-api/src/__tests__/templates/api/__snapshots__/validate-letter-template-files.test.ts.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`guard duty handler errors if cannot parse version id in the event 1`] = `"Unexpected object key "pdf-template/template-owner/template-id/unexpected-file-name""`;
3+
exports[`guard duty handler errors if cannot parse version id in the event 1`] = `"Unexpected object key "pdf-template/client-id/template-id/unexpected-file-name""`;
44

55
exports[`guard duty handler errors if the event has unknown file-type 1`] = `
66
"[
@@ -19,7 +19,7 @@ exports[`guard duty handler errors if the event has unknown file-type 1`] = `
1919
]"
2020
`;
2121

22-
exports[`guard duty handler errors if the event is missing file-type 1`] = `"Unexpected object key "template-owner/template-id/template-version-id.pdf""`;
22+
exports[`guard duty handler errors if the event is missing file-type 1`] = `"Unexpected object key "client-id/template-id/template-version-id.pdf""`;
2323

2424
exports[`guard duty handler errors if the event is missing object key 1`] = `
2525
"[
@@ -53,7 +53,7 @@ exports[`guard duty handler errors if the event is missing scan result 1`] = `
5353
]"
5454
`;
5555

56-
exports[`guard duty handler errors if the event is missing template id 1`] = `"Unexpected object key "pdf-template/template-owner/template-version-id.pdf""`;
56+
exports[`guard duty handler errors if the event is missing template id 1`] = `"Unexpected object key "pdf-template/client-id/template-version-id.pdf""`;
5757

5858
exports[`guard duty handler errors if the event is missing template owner 1`] = `"Unexpected object key "pdf-template/template-id/template-version-id.pdf""`;
5959

0 commit comments

Comments
 (0)