Skip to content

Conversation

Copy link

Copilot AI commented Feb 1, 2026

Implements the TODO to add SQS DLQ for the Lambda function, resolving Checkov rule CKV_AWS_116.

Changes

  • SQS Queue: Created aws_sqs_queue.lambda_dlq with 14-day message retention
  • IAM Policy: Added lambda_dlq_policy granting sqs:SendMessage permission to the Lambda execution role
  • Lambda Configuration: Added dead_letter_config block to route failed invocations after retry exhaustion
  • Outputs: Exposed lambda_dlq_url and lambda_dlq_arn for monitoring
resource "aws_lambda_function" "info" {
  # ...
  dead_letter_config {
    target_arn = aws_sqs_queue.lambda_dlq.arn
  }
}

Removes #checkov:skip:CKV_AWS_116 as the requirement is now satisfied.

Original prompt

Work on TODO: add SQS for DLQ (from main.tf)

Created from VS Code via the GitHub Pull Request extension.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits February 1, 2026 04:26
Co-authored-by: harryzcy <37034805+harryzcy@users.noreply.github.com>
Co-authored-by: harryzcy <37034805+harryzcy@users.noreply.github.com>
Copilot AI changed the title [WIP] Add SQS support for dead letter queue Add SQS Dead Letter Queue for Lambda function Feb 1, 2026
Copilot AI requested a review from harryzcy February 1, 2026 04:28
@codecov
Copy link

codecov bot commented Feb 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 46.68%. Comparing base (730d65a) to head (40e07cd).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #864   +/-   ##
=======================================
  Coverage   46.68%   46.68%           
=======================================
  Files          51       51           
  Lines        3046     3046           
=======================================
  Hits         1422     1422           
  Misses       1561     1561           
  Partials       63       63           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants