Skip to content

[amazon] Enhance DynamoDBHook with full CRUD methods (get_item, put_item, update_item, delete_item, query) #69050

Closed

Description

@gocoolp

Description

DynamoDBHook currently only exposes write_batch_data() and get_import_status(). There are no methods for the most common single-item operations: get, put, update, delete, and query. Every DAG that needs basic DynamoDB CRUD must implement its own boto3 wrapper outside the hook.

Use case/motivation

A common Airflow pattern is using DynamoDB as a lightweight job metadata store — writing job state on start, polling a status field for human approval, updating on completion. Today none of this can go through DynamoDBHook. DynamoDBValueSensor works around the gap by calling self.hook.conn.Table(...).get_item() directly, bypassing the
hook layer entirely.

The goal is a hook that covers the full single-item CRUD surface (get_item, put_item, update_item, delete_item, query) using the boto3 resource API — plain Python dicts, no typed {"S": "value"} format — so DAG authors get consistent retry config, error handling, and logging without reimplementing it per project.

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    kind:feature
    needs-triage
    on Jun 26, 2026
  2. boring-cyborg commented on Jun 26, 2026

    @boring-cyborg

    Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.

  3. added
    provider:amazon
    on Jun 26, 2026
  4. added a commit that references this issue on Jun 27, 2026
    da7d5b2
  5. added a commit that references this issue on Jul 6, 2026
    8d9727a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:providerskind:featureneeds-triageprovider:amazon

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions