Skip to content

Commit

Permalink
Merge pull request #17 from StateFarmIns/fix-kms-key-permissions
Browse files Browse the repository at this point in the history
fix: 🐛 Fix Lambda KMS permissions
  • Loading branch information
Clete2 authored Dec 14, 2023
2 parents bb6b573 + 8d2e6da commit acc023d
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 acc023d

Please sign in to comment.