GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — DynamoDBToS3Operator using native export functionality. · Issue #40737 · apache/airflow

DynamoDBToS3Operator using native export functionality. #40737

New issue
Copy link
New issue
Copy link
Closed
#41304
Closed
DynamoDBToS3Operator using native export functionality.#40737
#41304
Copy link
Assignees
Kuhlmann-Itagyba-bah
Labels
area:providersgood first issuekind:featureFeature Requestsprovider:amazonAWS/Amazon - related issues

Description

@Kuhlmann-Itagyba-bah
Kuhlmann-Itagyba-bah
opened on Jul 11, 2024
Issue body actions

Apache Airflow Provider(s)

amazon

Versions of Apache Airflow Providers

apache-airflow-providers-amazon==8.20.0

Apache Airflow version

2.9.1

Operating System

Debian GNU/Linux 12

Deployment

Official Apache Airflow Helm Chart

Deployment details

No response

What happened

DynamoDBToS3Operator does not offer the possibility to use DynamoDB Export native functionality; hence, it scans the entire table, requiring the airflow executor role to actually have access to data, which is potentially dangerous. Also, it does not allow incremental export, which can be used with boto3.

What you think should happen instead

It should add the possibility of using the AWS native export functionality, allowing the Airflow role to execute the data transfer without needing access to the data itself.

How to reproduce

Implement any DynamoDBToS3Operator task without "dynamodb:Scan" permission on the giving table.

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

  • I agree to follow this project's Code of Conduct
Reacted by Itagyba Abondanza Kuhlmann, saulotdr, Elio, Filtzkowski-Robert-bah and Leonardo Okada

Activity

  1. Kuhlmann-Itagyba-bah
    added
    area:providers
    kind:bugThis is a clearly a bug
    needs-triagelabel for new issues that we didn't triage yet
    on Jul 11, 2024
  2. boring-cyborg commented on Jul 11, 2024

    @boring-cyborg
    boring-cyborgBot
    on Jul 11, 2024 – with boring-cyborg
    More actions

    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. dosubot
    added
    kind:featureFeature Requests
    provider:amazonAWS/Amazon - related issues
    on Jul 11, 2024
  4. shahar1
    assigned
    Kuhlmann-Itagyba-bah
    on Jul 11, 2024
  5. shahar1
    removed
    kind:bugThis is a clearly a bug
    needs-triagelabel for new issues that we didn't triage yet
    on Jul 11, 2024
  6. eladkal
    added
    good first issue
    on Jul 11, 2024
  7. jayceslesar commented on Jul 12, 2024

    @jayceslesar
    jayceslesar
    on Jul 12, 2024
    Contributor
    More actions

    Is this ask possible? The only method in the dynamo boto3 client listed that seems relevant is export_table_to_point_in_time which the existing codebase already supports

    airflow/airflow/providers/amazon/aws/transfers/dynamodb_to_s3.py

    Line 156 in 6b92145

    def _export_table_to_point_in_time(self):
    .

    Doesn't seem that a native export is possible without PITR enabled.

    The only thing the existing Airflow implementation/passthrough seems to be missing are two (optional) arguments:

    1. ExportType
    2. IncrementalExportSpecification
  8. gyli commented on Jul 13, 2024

    @gyli
    gyli
    on Jul 13, 2024
    Collaborator
    More actions

    I agree with @jayceslesar that ExportTableToPointInTime is the only API provided in boto to export DynamoDB data to S3, based on AWS's blog introducing this native export.

    @Kuhlmann-Itagyba-bah You may try DynamoDBToS3Operator with argument export_time specified, so it will use _export_table_to_point_in_time method for export.

  9. Ghoul-SSZ commented on Aug 7, 2024

    @Ghoul-SSZ
    Ghoul-SSZ
    on Aug 7, 2024
    More actions

    Hello. I have also ran into this issue this week and have made a PR about it 👆 .
    Please take a look if you have some time to spare. 🙏
    Since its my first time making a PR here, there might be things or edge cases I haven't thought through.
    In that case, sorry in advance 🙇

    Any helps or suggestions are more than welcome. 😄

    Reacted by Guangyang Li
  10. vincbeck
    closed this as completedin #41304on Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @Kuhlmann-Itagyba-bah
    Kuhlmann-Itagyba-bah

Labels

area:providersgood first issuekind:featureFeature Requestsprovider:amazonAWS/Amazon - related issues

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.