Files
floci/src/main/java/io
Konda Balaji RaoandHector Ventura 952dec060f fix(lambda): use persisted firstReceiveTimestamp in SQS ESM (#1548)
* fix: return XML error for missing action and add volume action fallbacks

* fix(eventbridge): sync EventBridge tags to ResourceGroupsTaggingService

EventBridge stored tags on rules, buses, and archives in its own stores but never propagated them to the central ResourceGroupsTaggingService. This caused GetResources with --resource-type-filters events:rule to return an empty list.

Inject ResourceGroupsTaggingService into EventBridgeService (following the existing GlueService pattern) and sync tags during putRule, tagResource, untagResource, and deleteRule operations.

Closes #1343

* fix(lambda): use persisted firstReceiveTimestamp in SQS ESM and Pipes event payloads

Both SqsEventSourcePoller.buildSqsEvent() and PipesPoller.buildSqsRecordNodes()
were using System.currentTimeMillis() for ApproximateFirstReceiveTimestamp,
causing the value to change on every poll cycle. AWS SQS defines this as the
epoch time when the message was first received from the queue, and it must
remain constant across retries.

The SQS service layer already tracks this correctly via
Message.firstReceiveTimestamp (set once in GuardedMessageQueue.tryClaim()),
but both pollers bypassed the stored value.

Changes:
- SqsEventSourcePoller: read msg.getFirstReceiveTimestamp() with null fallback
- PipesPoller: same fix for the identical code path
- SqsEventSourcePollerTest: set firstReceiveTimestamp on test messages and
  assert the output matches the stored value; add a regression test proving
  the timestamp remains stable across simulated retries

Closes #1497

---------

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
Co-authored-by: Hector Ventura <hectorvent@gmail.com>
2026-06-25 19:11:51 -05:00
..