Skip to content

Commit 5568bae

Browse files
committed
more wiring for get_mi lambda
1 parent 934b660 commit 5568bae

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

infrastructure/terraform/components/api/iam_role_api_gateway_execution_role.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ data "aws_iam_policy_document" "api_gateway_execution_policy" {
5252
module.get_letter.function_arn,
5353
module.get_letter_data.function_arn,
5454
module.get_letters.function_arn,
55+
module.get_mi.function_arn,
5556
module.patch_letter.function_arn,
5657
module.post_letters.function_arn,
5758
module.get_status.function_arn,

infrastructure/terraform/components/api/locals_alarms.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ locals {
1111
get_letter = module.get_letter.function_name
1212
get_letters = module.get_letters.function_name
1313
get_letter_data = module.get_letter_data.function_name
14+
get_mi = module.get_mi.function_name
1415
get_status = module.get_status.function_name
1516
patch_letter = module.patch_letter.function_name
1617
post_letters = module.post_letters.function_name

infrastructure/terraform/components/api/module_lambda_get_mi.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ data "aws_iam_policy_document" "get_mi_lambda" {
5858

5959
actions = [
6060
"dynamodb:GetItem",
61+
"dynamodb:Query"
6162
]
6263

6364
resources = [

0 commit comments

Comments
 (0)