PLT-1482: Add Necessary KMS Keys to WAF Sync Lambda Permissions#353
Merged
Conversation
juliareynolds-nava
approved these changes
Dec 11, 2025
lukey-luke
approved these changes
Dec 12, 2025
lukey-luke
left a comment
Contributor
There was a problem hiding this comment.
Resource matches error from cloudwatch HERE. Thanks for updating!
juliareynolds-nava
pushed a commit
that referenced
this pull request
Jan 6, 2026
## 🎫 Ticket https://jira.cms.gov/browse/PLT-1482 ## 🛠 Changes Adds environment and app config keys to lambda permissions passed through to function module. ## ℹ️ Context The DPC WAF sync lambdas have been very error heavy and the source is invalid key configuration in the terraform service. This change aims to add the necessary permissions to stop the lambdas from erroring out. ## 🧪 Validation <details> <summary>Tofu Plan Output (DPC/DEV)</summary> ``` OpenTofu will perform the following actions: # module.api_waf_sync_function.aws_iam_role_policy.default_function will be updated in-place ~ resource "aws_iam_role_policy" "default_function" { id = "dpc-dev-api-waf-sync-function:default-function" name = "default-function" ~ policy = jsonencode( ~ { ~ Statement = [ { Action = [ "ssm:GetParameters", "ssm:GetParameter", "sqs:ReceiveMessage", "sqs:GetQueueAttributes", "sqs:DeleteMessage", "logs:PutLogEvents", "logs:CreateLogStream", "logs:CreateLogGroup", "ec2:DescribeNetworkInterfaces", "ec2:DescribeAccountAttributes", "ec2:DeleteNetworkInterface", "ec2:CreateNetworkInterface", ] Effect = "Allow" Resource = "*" }, ~ { ~ Resource = [ + "arn:aws:kms:us-east-1::key/69fc1eca-71e6-43e6-acd1-53f0b80a7ef6", "arn:aws:kms:us-east-1::key/601028a8-2ef7-4bec-9e39-af26d91e07b9", # (1 unchanged element hidden) ] # (2 unchanged attributes hidden) }, ] # (1 unchanged attribute hidden) } ) # (1 unchanged attribute hidden) } Plan: 0 to add, 1 to change, 0 to destroy. ``` </details>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎫 Ticket
https://jira.cms.gov/browse/PLT-1482
🛠 Changes
Adds environment and app config keys to lambda permissions passed through to function module.
ℹ️ Context
The DPC WAF sync lambdas have been very error heavy and the source is invalid key configuration in the terraform service. This change aims to add the necessary permissions to stop the lambdas from erroring out.
🧪 Validation
Tofu Plan Output (DPC/DEV)