Skip to content

Finer Controls for S3 Events Notifications#76

Merged
gberenice merged 6 commits into
cloudposse-terraform-components:mainfrom
ivan-pinatti:main
Jan 23, 2026
Merged

Finer Controls for S3 Events Notifications#76
gberenice merged 6 commits into
cloudposse-terraform-components:mainfrom
ivan-pinatti:main

Conversation

@ivan-pinatti

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

Copy link
Copy Markdown
Contributor

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
    • Allow configuring which S3 events trigger Datadog Lambda Forwarder notifications for finer control over event handling.
    • Exposed an optional user-configurable list of S3 event types (defaults to none) so deployments can opt in to specific event notifications.

✏️ Tip: You can customize this high-level summary in your review settings.

…cation AND set the default to ObjectCreated + ObjectRemoved
@coderabbitai

coderabbitai Bot commented Oct 3, 2025

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

Adds a new Terraform variable s3_notification_events (list(string)) and wires it into the datadog_lambda_forwarder module in src/main.tf by passing s3_notification_events = var.s3_notification_events.

Changes

Cohort / File(s) Change Summary
Terraform variable added
src/variables.tf
Introduced variable "s3_notification_events" as list(string) with description "List of S3 events to trigger the Lambda notification" and default [].
Module input propagation
src/main.tf
Passed the new variable into the Datadog forwarder module: s3_notification_events = var.s3_notification_events.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

I nibble at configs, ears alert and bright,
A new S3 chorus wakes in the night.
Forwarder listens, ready to relay,
Buckets hum and events find their way.
Tiny paws commit — deploy takes flight. 🥕🐇

🚥 Pre-merge checks | ✅ 3
✅ 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 'Finer Controls for S3 Events Notifications' accurately summarizes the main change: introducing a new variable (s3_notification_events) to provide fine-grained control over S3 event types that trigger Lambda notifications.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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
Comment thread src/variables.tf Outdated
Co-authored-by: Igor Rodionov  <goruha@gmail.com>
@goruha

goruha commented Oct 14, 2025

Copy link
Copy Markdown
Contributor

@ivan-pinatti could you pls update the module version to https://github.com/cloudposse/terraform-aws-datadog-lambda-forwarder/releases/tag/v1.10.0

@ivan-pinatti

Copy link
Copy Markdown
Contributor Author

@mergify mergify Bot added the needs-test Needs testing label Oct 17, 2025
@mergify mergify Bot closed this Jan 1, 2026
@mergify

mergify Bot commented Jan 1, 2026

Copy link
Copy Markdown

This pull request was marked as a work in progress and looks abandoned.
Feel free to reopen it if you think it's a mistake.

@mergify mergify Bot removed the triage Needs triage label Jan 1, 2026
@ivan-pinatti

Copy link
Copy Markdown
Contributor Author

This was closed by mistake.

@goruha, could you please reopen and approve it?

@gberenice gberenice reopened this Jan 8, 2026
@gberenice

Copy link
Copy Markdown
Contributor

/terratest

@github-actions

github-actions Bot commented Jan 8, 2026

Copy link
Copy Markdown

There are no real tests for this component. So we set terratest statuses to successful execution without running any tests

@gberenice gberenice enabled auto-merge January 8, 2026 10:12
@mergify mergify Bot requested a review from a team January 8, 2026 10:13
@mergify

mergify Bot commented Jan 8, 2026

Copy link
Copy Markdown

Thanks @ivan-pinatti for creating this pull request!

A maintainer will review your changes shortly. Please don't be discouraged if it takes a while.

While you wait, make sure to review our contributor guidelines.

Tip

Need help or want to ask for a PR review to be expedited?

Join us on Slack in the #pr-reviews channel.

@mergify

mergify Bot commented Jan 15, 2026

Copy link
Copy Markdown

Heads up! This pull request looks stale. It will be closed soon, if there are no new commits. ⏳

@mergify mergify Bot added stale This PR has gone stale and removed stale This PR has gone stale labels Jan 15, 2026
@mergify

mergify Bot commented Jan 15, 2026

Copy link
Copy Markdown

Thanks @ivan-pinatti for creating this pull request!

A maintainer will review your changes shortly. Please don't be discouraged if it takes a while.

While you wait, make sure to review our contributor guidelines.

Tip

Need help or want to ask for a PR review to be expedited?

Join us on Slack in the #pr-reviews channel.

@ivan-pinatti

Copy link
Copy Markdown
Contributor Author

@goruha, can I get your approval for the merge please?

@mergify

mergify Bot commented Jan 22, 2026

Copy link
Copy Markdown

Heads up! This pull request looks stale. It will be closed soon, if there are no new commits. ⏳

@mergify mergify Bot added stale This PR has gone stale and removed stale This PR has gone stale labels Jan 22, 2026
@mergify

mergify Bot commented Jan 22, 2026

Copy link
Copy Markdown

Thanks @ivan-pinatti for creating this pull request!

A maintainer will review your changes shortly. Please don't be discouraged if it takes a while.

While you wait, make sure to review our contributor guidelines.

Tip

Need help or want to ask for a PR review to be expedited?

Join us on Slack in the #pr-reviews channel.

@ivan-pinatti ivan-pinatti requested a review from goruha January 23, 2026 15:06
@mergify

mergify Bot commented Jan 23, 2026

Copy link
Copy Markdown

Thanks @ivan-pinatti for creating this pull request!

A maintainer will review your changes shortly. Please don't be discouraged if it takes a while.

While you wait, make sure to review our contributor guidelines.

Tip

Need help or want to ask for a PR review to be expedited?

Join us on Slack in the #pr-reviews channel.

@aknysh

aknysh commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

/terratest

@mergify

mergify Bot commented Jan 23, 2026

Copy link
Copy Markdown

Thanks @ivan-pinatti for creating this pull request!

A maintainer will review your changes shortly. Please don't be discouraged if it takes a while.

While you wait, make sure to review our contributor guidelines.

Tip

Need help or want to ask for a PR review to be expedited?

Join us on Slack in the #pr-reviews channel.

@mergify mergify Bot requested a review from a team January 23, 2026 19:55
@mergify

mergify Bot commented Jan 23, 2026

Copy link
Copy Markdown

Thanks @ivan-pinatti for creating this pull request!

A maintainer will review your changes shortly. Please don't be discouraged if it takes a while.

While you wait, make sure to review our contributor guidelines.

Tip

Need help or want to ask for a PR review to be expedited?

Join us on Slack in the #pr-reviews channel.

@gberenice gberenice added this pull request to the merge queue Jan 23, 2026
Merged via the queue into cloudposse-terraform-components:main with commit 4b5e725 Jan 23, 2026
19 checks passed
@github-actions

Copy link
Copy Markdown

These changes were released in v1.535.21.

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

Labels

needs-test Needs testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants