Skip to main content

AWS Datalake

This page contains the setup guide and reference information for the AWS Datalake destination connector.

The AWS Datalake destination connector allows you to sync data to AWS. It will write data as JSON files in S3 and will make it available through a Lake Formation Governed Table in the Glue Data Catalog so that the data is available throughout other AWS services such as Athena, Glue jobs, EMR, Redshift, etc.

Prerequisites

To use this destination connector, you will need:

  • An AWS account

  • An S3 bucket where the data will be written

  • An AWS Lake Formation database where tables will be created (one per stream)

  • AWS credentials in the form of either the pair Access key ID / Secret key ID or a role with the following permissions:

    • Writing objects in the S3 bucket
    • Updating of the Lake Formation database

Please check the Setup guide below if you need guidance creating those.

Setup guide

You should now have all the requirements needed to configure AWS Datalake as a destination in the UI. You'll need the following information to configure the destination:

  • Aws Account Id : The account ID of your AWS account. You will find the instructions to setup a new AWS account here.
  • Aws Region : The region in which your resources are deployed
  • Authentication mode : The AWS Datalake connector lets you authenticate with either a user or a role. In both case, you will have to make sure that appropriate policies are in place. Select "ROLE" if you are using a role, "USER" if using a user with Access key / Secret Access key.
  • Target Role Arn : The name of the role, if "Authentication mode" was "ROLE". You will find the instructions to create a new role here.
  • Access Key Id : The Access Key ID of the user if "Authentication mode" was "USER". You will find the instructions to create a new user here. Make sure to select "Programmatic Access" so that you get secret access keys.
  • Secret Access Key : The Secret Access Key ID of the user if "Authentication mode" was "USER"
  • S3 Bucket Name : The bucket in which the data will be written. You will find the instructions to create a new S3 bucket here.
  • Target S3 Bucket Prefix : A prefix to prepend to the file name when writing to the bucket
  • Database : The database in which the tables will be created. You will find the instructions to create a new Lakeformation Database here.

Assigning proper permissions

The policy used by the user or the role must have access to the following services:

  • AWS Lake Formation
  • AWS Glue
  • AWS S3

You can use the AWS policy generator to help you generate an appropriate policy.

Please also make sure that the role or user you will use has appropriate permissions on the database in AWS Lakeformation. You will find more information about Lake Formation permissions in the AWS Lake Formation Developer Guide.

Supported sync modes

FeatureSupported?(Yes/No)Notes
Full Refresh SyncYes
Incremental - Append SyncYes
NamespacesNo

Data type map

The Glue tables will be created with schema information provided by the source, i.e : You will find the same columns and types in the destination table as in the source except for the following types which will be translated for compatibility with the Glue Data Catalog:

Type in the sourceType in the destination
numberfloat
integerint

Changelog

Expand to review
VersionDatePull RequestSubject
0.1.262024-08-2444677Update dependencies
0.1.252024-08-2244530Update test dependencies
0.1.242024-08-1744341Update dependencies
0.1.232024-08-1243822Update dependencies
0.1.222024-08-1043497Update dependencies
0.1.212024-08-0343139Update dependencies
0.1.202024-07-2742821Update dependencies
0.1.192024-07-2042174Update dependencies
0.1.182024-07-1341819Update dependencies
0.1.172024-07-1041590Update dependencies
0.1.162024-07-0941083Update dependencies
0.1.152024-07-0640907Update dependencies
0.1.142024-06-2940631Update dependencies
0.1.132024-06-2740215Replaced deprecated AirbyteLogger with logging.Logger
0.1.122024-06-2640535Update dependencies
0.1.112024-06-2540458Update dependencies
0.1.102024-06-2239958Update dependencies
0.1.92024-06-0439033[autopull] Upgrade base image to v1.2.1
0.1.82024-05-2038413[autopull] base image + poetry + up_to_date
0.1.72024-04-29#33853Enable STS Role Credential Refresh for Long Sync
0.1.62024-03-22#36386Support new state message protocol
0.1.52024-01-03#33924Add new ap-southeast-3 AWS region
0.1.42023-10-25#29221Upgrade AWSWrangler
0.1.32023-03-28#24642Prefer airbyte type for complex types when available
0.1.22022-09-26#17193Fix schema keyerror and add parquet support
0.1.12022-04-20#11811Fix name of required param in specification
0.1.02022-03-29#10760Initial release