Skip to content

How to Migrate from MongoDB to AWS Athena

Skippr is the easiest way to migrate from MongoDB to Athena and get fully cleansed and modeled data in one run command.

Source: MongoDB. Destination: Athena.

Sample config

yaml
skippr:
  workspace: mongodb_to_athena
pipelines:
  mongodb_to_athena:
    data_source: data_sources.source
    data_sink: data_sinks.warehouse
data_sources:
  source:
    Mongodb:
      connection_string: "mongodb://user:pass@host:27017"
      database: mydb
      collection: users
data_sinks:
  warehouse:
    Athena:
      s3_bucket: my-bucket
      glue_database_name: my_database
      athena_workgroup_name: primary
      athena_results_s3_bucket: my-bucket
      region: us-east-1
      catalog: AwsDataCatalog

Environment

bash
export AWS_ACCESS_KEY_ID="your-key"
export AWS_SECRET_ACCESS_KEY="your-secret"
export AWS_DEFAULT_REGION="us-east-1"

Source connector: mongodb. Destination connector: athena.

See Quick start.