We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12be555 commit c28e67dCopy full SHA for c28e67d
infrastructure/terraform/components/api/module_authorizer_lambda.tf
@@ -13,6 +13,7 @@ module "authorizer_lambda" {
13
14
function_name = "authorizer"
15
description = "Authorizer for Suppliers API"
16
+ depends_on = [aws_cloudwatch_log_group.lambda_log_group]
17
18
memory = 512
19
timeout = 20
@@ -52,4 +53,17 @@ data "aws_iam_policy_document" "authorizer_lambda" {
52
53
"*"
54
]
55
}
56
+
57
+ statement {
58
+ sid = "AllowDynamoDBAccess"
59
+ effect = "Allow"
60
61
+ actions = [
62
+ "dynamodb:Query"
63
+ ]
64
65
+ resources = [
66
+ aws_dynamodb_table.suppliers.arn
67
68
+ }
69
0 commit comments