Skip to content

feat: add Lambda and SQS for long-write commands - #16

Merged
llama90 merged 3 commits into
copilot/optimize-lambda-sqs-configsfrom
feature/quadrant-lw
Jan 10, 2026
Merged

llama90 merged 3 commits into
copilot/optimize-lambda-sqs-configsfrom
feature/quadrant-lw

Conversation

@llama90

@llama90 llama90 commented Jan 10, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@llama90
llama90 requested a review from Copilot January 10, 2026 03:43
@github-actions

Copy link
Copy Markdown
Contributor

✅ Terragrunt HCL formatting has been automatically applied to this PR.

@github-actions

Copy link
Copy Markdown
Contributor

🔍 Terragrunt Check Results

📊 Summary

✅ All checks passed!

Check Status Issues Scope
🖌 HCL Format ✅ success - All HCL files
🤖 HCL Validate ✅ success - All HCL files
🔒 Trivy ✅ success 0 critical, 0 high, 0 medium aws/10-plt/chatbot-command-lw-sqs, aws/10-plt/chatbot-command-lw-worker

🔒 Trivy Security Details (0 issue(s))
Trivy scanning is disabled for Terragrunt HCL files
To enable security scanning, configure Terragrunt to generate .tf files first

💡 Note: Terragrunt plan is disabled. To enable, configure AWS OIDC credentials in the workflow.


👤 Pusher: @llama90 | 🔄 Action: pull_request | ⚙️ Workflow: Terragrunt Check

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces infrastructure for processing long-write chatbot commands (build, deploy, etc.) using AWS Lambda and SQS. The implementation uses an event-driven architecture where commands are queued in SQS and processed asynchronously by a Lambda worker.

Changes:

  • Added SQS queue with dead letter queue for long-write command messages
  • Added Lambda worker function to process long-write commands from the queue
  • Configured EventBridge-to-SQS integration with appropriate IAM policies

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 3 comments.

File Description
aws/10-plt/chatbot-command-lw-sqs/terragrunt.hcl SQS queue configuration with DLQ, EventBridge permissions, and message retention settings
aws/10-plt/chatbot-command-lw-sqs/.terraform.lock.hcl Terraform lock file for AWS provider version 5.100.0
aws/10-plt/chatbot-command-lw-worker/terragrunt.hcl Lambda worker configuration with SQS event source mapping, IAM policies, and runtime settings
aws/10-plt/chatbot-command-lw-worker/.terraform.lock.hcl Terraform lock file for AWS provider version 5.100.0
Files not reviewed (2)
  • aws/10-plt/chatbot-command-lw-sqs/.terraform.lock.hcl: Language not supported
  • aws/10-plt/chatbot-command-lw-worker/.terraform.lock.hcl: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@llama90

llama90 commented Jan 10, 2026

Copy link
Copy Markdown
Contributor Author

@copilot Is your suggestion against the short-read command approach?

Copilot AI commented Jan 10, 2026

Copy link
Copy Markdown
Contributor

@llama90 I've opened a new pull request, #17, to work on those changes. Once the pull request is ready, I'll request review from you.

@github-actions

Copy link
Copy Markdown
Contributor

🔍 Terragrunt Check Results

📊 Summary

✅ All checks passed!

Check Status Issues Scope
🖌 HCL Format ✅ success - All HCL files
🤖 HCL Validate ✅ success - All HCL files
🔒 Trivy ✅ success 0 critical, 0 high, 0 medium aws/10-plt/chatbot-command-lw-sqs, aws/10-plt/chatbot-command-lw-worker

🔒 Trivy Security Details (0 issue(s))
Trivy scanning is disabled for Terragrunt HCL files
To enable security scanning, configure Terragrunt to generate .tf files first

💡 Note: Terragrunt plan is disabled. To enable, configure AWS OIDC credentials in the workflow.


👤 Pusher: @llama90 | 🔄 Action: pull_request | ⚙️ Workflow: Terragrunt Check

@llama90
llama90 merged commit d9b1287 into copilot/optimize-lambda-sqs-configs Jan 10, 2026
2 checks passed
@llama90
llama90 deleted the feature/quadrant-lw branch January 10, 2026 04:21
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.

3 participants