shivaam opened a new pull request, #64661:
URL: https://github.com/apache/airflow/pull/64661
Follow-up to #64629 (DynamoDB hook), applying the same debug logging
and exception handling pattern to four more AWS provider hooks.
**Debug logging** — adds `self.log.debug()` before/after API calls,
following the Airbyte provider pattern (#51503):
| Hook | Methods |
|------|---------|
| SQS | `create_queue`, `send_message`, `asend_message` |
| Lambda | `invoke_lambda`, `create_lambda` |
| EC2 | `get_instance`, `stop/start/terminate_instances`,
`get_instance_state_async`, `wait_for_state` |
| RDS | All 6 `get_*_state` methods |
All logs are at `DEBUG` level — no-ops unless explicitly enabled.
**Exception handling (RDS only):**
- Add `from e` exception chaining to all 6 `raise
AirflowNotFoundException(e)`
to preserve `__cause__` in tracebacks
- Replace `raise e` with bare `raise` in `get_export_task_state` and
`get_event_subscription_state` to avoid adding a misleading extra
frame to the traceback
**Testing:** All 53 existing tests across the four hook test files
pass unchanged.
Part of the [Debugging Improvements — Airflow
3](https://github.com/orgs/apache/projects/421) initiative.
related: #64629, #51503
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes — Claude Code (Claude Opus 4.6)
Generated-by: Claude Code (Claude Opus 4.6) following [the
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]