Skip to content

Commit

Permalink
fix: 🐛 Fix Lambda KMS permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Clete2 committed Dec 14, 2023
1 parent bb6b573 commit 8d2e6da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ reports/tarpaulin-report.html

# DrawIO Temp Files
.$*.bkp
.$*.dtmp
.$*.dtmp

sample/
2 changes: 1 addition & 1 deletion tf-lambda-iam-role.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ data "aws_iam_policy_document" "log_retention" {
dynamic "statement" {
for_each = var.kms_key_arn == null ? [] : [var.kms_key_arn]
content {
actions = ["kms:GenerateDataKey"]
actions = ["kms:Decrypt"]
resources = [statement.value]
}
}
Expand Down

0 comments on commit 8d2e6da

Please sign in to comment.