Skip to content

Conversation

ivan-pinatti
Copy link

@ivan-pinatti ivan-pinatti commented Oct 3, 2025

what

Introduce a new variable to have a fine-grained control about the type of S3 Events to trigger the Lambda Notification.

Requires change in underlying Terraform module to be applied first; cloudposse/terraform-aws-datadog-lambda-forwarder#105

why

Default should capture all the Create and Removal events (safer and more compreensive)
AND the variable would provide flexibility to include / remove as needed by users.

references

Summary by CodeRabbit

  • New Features
    • Added support to configure which S3 events trigger Datadog Lambda Forwarder notifications, enabling fine-grained control over event handling.
    • Introduced a user-configurable setting to pass a list of S3 events into the module, with sensible defaults covering object creation and removal.

…cation AND set the default to ObjectCreated + ObjectRemoved
Copy link

coderabbitai bot commented Oct 3, 2025

Walkthrough

Introduces a new Terraform variable s3_notification_events and wires it into the datadog_lambda_forwarder module in src/main.tf, passing var.s3_notification_events to the module.

Changes

Cohort / File(s) Change Summary
Terraform input propagation
src/variables.tf, src/main.tf
Added variable s3_notification_events (list(string) with default values) and passed it into module "datadog_lambda_forwarder" via s3_notification_events = var.s3_notification_events.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

I twitch my whiskers, configs align,
New S3 events hop into line.
A forwarder listens—thump, thump—aware,
Buckets whisper changes in the air.
Tiny paws commit, terraform applies,
Logs leap forward—carrots for the eyes! 🥕🐇

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title clearly summarizes the main change by indicating the addition of finer-grained control over S3 event notifications, which aligns exactly with the introduced variable and module update. It's concise, specific to the change, and avoids vague or extraneous phrasing.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f1338b7 and 7e6a62d.

📒 Files selected for processing (2)
  • src/main.tf (1 hunks)
  • src/variables.tf (1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
src/{main,variables,outputs,providers,versions,context}.tf

📄 CodeRabbit inference engine (AGENTS.md)

Keep the Terraform component files in src/: main.tf, variables.tf, outputs.tf, providers.tf, versions.tf, context.tf (source of truth)

Files:

  • src/variables.tf
  • src/main.tf
src/**/*.tf

📄 CodeRabbit inference engine (AGENTS.md)

src/**/*.tf: Use 2-space indentation for Terraform files
In Terraform, use lower_snake_case for variables and locals
Keep resource and data source names descriptive and aligned with Cloud Posse null-label patterns
Run terraform fmt and commit only formatted Terraform code
Adhere to TFLint rules defined in .tflint.hcl; do not commit lint violations

Files:

  • src/variables.tf
  • src/main.tf
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Summary

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@mergify mergify bot requested review from a team October 3, 2025 16:32
@mergify mergify bot added the triage Needs triage label Oct 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Needs triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant