The connector only reads data. It never creates, changes, or deletes anything in your AWS account.
Configuring AWS Glue (Iceberg) as a Source
In the Sources tab, click on the “Add source” button located on the top right of your screen. Then, select the AWS Glue (Iceberg) option from the list of connectors. Click Next and you’ll be prompted to add your access.1. Add account access
The connector reads the Glue Data Catalog and the table files in S3 directly. When your lake is in a different AWS account than your Nekt workspace (the usual case), you create a role in the lake account and let the Nekt workspace assume it, as described in the step-by-step below. The following configurations are available:- AWS region: The region of the Glue Data Catalog that registers the tables (for example,
us-east-1). - Assume role ARN: The ARN of the role in the lake account that the connector assumes (for example,
arn:aws:iam::123456789012:role/nekt-lake-reader). - Glue catalog ID (optional): The 12-digit ID of the AWS account that owns the Glue Data Catalog. Leave it empty to use the account of the Assume role ARN.
- Tables: The Iceberg tables to read. Each one becomes a stream. For each table:
- Database: The Glue database (Iceberg namespace) of the table.
- Table: The table name.
- Primary keys: The columns that identify a row. When empty, the connector uses the table’s Iceberg identifier fields, if it has any. Required (here or as identifier fields) when the table has an Incremental column: incremental runs update rows by primary key, and a table with an incremental column but no primary key is not read.
- Incremental column (optional): A
timestamp,timestamp with time zone,date,int, orlongcolumn that grows whenever a row is inserted or updated, such asupdated_at. See Incremental sync. Leave it empty to read the whole table every run.
- AWS credentials (advanced, optional): An access key ID and secret access key to use instead of the Nekt workspace’s own AWS identity. When an Assume role ARN is also filled, the key pair is used to assume the role. On GCP workspaces, the key pair is required.
Step-by-step for Assume Role ARN
Step-by-step for Assume Role ARN
- In the AWS account that owns the lake, create a role (for example,
nekt-lake-reader) with the following policy. Replace the region, account, database, bucket, and prefix with yours, and keep thekms:Decryptstatement only if the bucket is encrypted with a KMS key (SSE-KMS).
- Add a trust policy to the role, to allow Nekt to assume it. On AWS workspaces, trust the Nekt workspace role:
<AWS_ACCOUNT_ID_FROM_NEKT_WORKSPACE> is the AWS account ID where your Nekt workspace is configured. If the connector cannot assume the role, the run log shows the exact principal to allow.sts:AssumeRole on the role:{"Effect": "Allow", "Action": "sts:AssumeRole", "Resource": "<ROLE_ARN>"}. If you leave Assume role ARN empty, the IAM user itself needs the policy from step 1.-
If the bucket policy restricts access, allow the role there as well (
s3:GetObjecton the table prefixes ands3:ListBucketon the bucket). If the bucket uses a KMS key, the key policy must also allow the role to usekms:Decrypt. -
If your lake uses AWS Lake Formation, grant the role
DESCRIBEon the database andDESCRIBEandSELECTon each table. Keep the IAM S3 permissions from step 1: the connector reads the files in S3 directly with the role, not through Lake Formation.
- Copy the role ARN and paste it into Assume role ARN.
2. Select streams
Choose which data streams you want to sync. Each table you configured is one stream, named<database>_<table>. For faster extractions, select only the streams that are relevant to your analysis.
Tip: The stream can be found more easily by typing its name.Select the streams and click Next.
3. Configure data streams
Customize how you want your data to appear in your catalog. Select the desired layer where the data will be placed, a folder to organize it inside the layer, a name for each table (which will effectively contain the fetched data) and the type of sync.- Layer: choose between the existing layers on your catalog. This is where you will find your new extracted tables as the extraction runs successfully.
- Folder: a folder can be created inside the selected layer to group all tables being created from this new data source.
- Table name: we suggest a name, but feel free to customize it. You have the option to add a prefix to all tables at once and make this process faster!
- Sync Type: you can choose between INCREMENTAL and FULL_TABLE.
- Incremental: available for tables with an Incremental column. Each run reads only what changed since the previous run (see Incremental sync).
- Full table: each run reads the whole table, so the Nekt table matches the source exactly, including deleted rows.
4. Configure data source
Describe your data source for easy identification within your organization, not exceeding 140 characters. To define your Trigger, consider how often you want data to be extracted from this source. This decision usually depends on how frequently you need the new table data updated (every day, once a week, or only at specific times). Optionally, you can define some additional settings:- Configure Delta Log Retention and determine for how long we should store old states of this table as it gets updated. Read more about this resource here.
- Determine when to execute an Additional Full Sync. On incremental tables, a periodic full sync removes rows that were deleted at the source.
5. Check your new source
You can view your new source on the Sources page. If needed, manually trigger the source extraction by clicking on the arrow button. Once executed, your data will appear in your Catalog.How the tables are read
- Consistent version: each table is read as of the snapshot that is current when the connector starts reading that table. Changes committed while it is reading do not mix in; they arrive in the next run.
- Deleted rows: rows removed with position delete files (what Trino, Athena, and Spark write for
DELETE,UPDATE, andMERGEin merge-on-read mode) are not brought. - Empty tables: a table with no data yet is read as zero rows, not as an error.
- Schema changes: the table’s current schema is used on every run. A new column appears in Nekt (empty for older rows); a renamed column appears under its new name and the old column stops receiving values.
Incremental sync
With an Incremental column, each run reads:- from the files that were already in the table at the previous run, the rows whose incremental column is greater than or equal to the highest value read in that run (values in the future are capped at the time of the run, so they cannot hide later rows);
- every row of the files written since the previous run (new rows, updates, and compactions), whatever their incremental column. A row committed late with an older value, or with an empty value, is not lost.
- Rows deleted at the source are not removed from Nekt by incremental runs. Schedule an Additional Full Sync to clean them up.
- After a compaction (for example, Trino
optimizeor Glue automatic compaction), the files it rewrote are read once in full. Rows are updated by primary key (which incremental sync requires), so nothing is duplicated, but that run takes longer. - If the table’s older versions were expired before the next run (or the table was rolled back), that run can only use the incremental column and the run log warns about it. An Additional Full Sync picks up anything committed late in that window.
Column types
Limitations
- Equality deletes are not supported. Some writers (Flink upserts, for example) delete rows with equality delete files. The connector cannot apply them, so a table whose current snapshot has equality delete files is not read (the run log says so) instead of bringing back deleted rows. To unblock the table, rewrite its data files so the deletes are applied, and remove the delete files left behind: in Spark,
rewrite_data_fileswith theremove-dangling-deletesoption (a plain rewrite can leave the equality delete files listed in the snapshot). - Iceberg format versions 1 and 2 are supported. Tables in format version 3 or later are not read yet.
- Incremental runs do not remove rows deleted at the source (see Incremental sync).
- Only Iceberg tables are read. Other Glue tables (Hive, Delta Lake, CSV) are reported as not supported.