> ## Documentation Index
> Fetch the complete documentation index at: https://www.artie.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# AWS Glue

> Configure AWS Glue Data Catalog as an Apache Iceberg destination in Artie with Amazon S3 or S3-compatible storage.

Use AWS Glue Data Catalog to manage Apache Iceberg table metadata while storing Parquet data files in Amazon S3 (or an S3-compatible object store). AWS Glue catalogs run on Artie's native Iceberg engine (see [Iceberg overview](/docs/destinations/iceberg/overview) for availability) and support Iceberg v2, Iceberg v3, `VARIANT` columns, and scheduled table maintenance.

## What you'll need

* An Amazon S3 warehouse location using the `s3://` scheme (for example, `s3://analytics-lakehouse/warehouse`). Amazon Athena requires `s3://` (not `s3a://`) for Glue Iceberg tables.
* The **AWS region** where your Glue catalog and S3 bucket live (for example, `us-east-1`).
* Static AWS IAM credentials (access key and secret key), or a BYOC data plane configured with an IAM role (API only).

## Setup

**Step 1: Grant Glue and S3 permissions**

Ensure your IAM user or BYOC data plane role has permissions to manage Glue databases/tables and read/write objects under your warehouse bucket.

```json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "glue:GetDatabase",
        "glue:CreateDatabase",
        "glue:GetDatabases",
        "glue:GetTable",
        "glue:CreateTable",
        "glue:UpdateTable",
        "glue:DeleteTable",
        "glue:GetTables"
      ],
      "Resource": [
        "arn:aws:glue:us-east-1:123456789012:catalog",
        "arn:aws:glue:us-east-1:123456789012:database/*",
        "arn:aws:glue:us-east-1:123456789012:table/*/*"
      ]
    },
    {
      "Effect": "Allow",
      "Action": [
        "s3:GetObject",
        "s3:PutObject",
        "s3:DeleteObject",
        "s3:ListBucket",
        "s3:GetBucketLocation"
      ],
      "Resource": [
        "arn:aws:s3:::analytics-lakehouse",
        "arn:aws:s3:::analytics-lakehouse/*"
      ]
    }
  ]
}
```

**Step 2: Configure authentication in Artie**

In the Artie dashboard, create an **Iceberg** destination, select **AWS Glue Data Catalog** as the catalog type, enter your **Warehouse location** (`s3://bucket/prefix`) and **AWS region**, and choose an authentication mode:

**Static AWS IAM keys**

* **AWS access key ID**: IAM access key ID.
* **AWS secret access key**: IAM secret access key (encrypted at rest).
* `awsSessionToken` *(API only)*: Optional temporary STS session token (encrypted at rest).

**BYOC pod IAM role (API only)**

Set `useDefaultAWSCredentials: true` via the Artie API to authenticate both Glue and S3 using your BYOC data plane's pod IAM role (IRSA / EKS Pod Identity) without storing static keys.

> **Warning:**
>
> `useDefaultAWSCredentials` is restricted to BYOC companies running on their own single-tenant BYOC data plane. Shared data planes always reject this setting.

**Step 3: Test the connection**

Select **Test connection** to verify Artie can reach AWS Glue and access your S3 warehouse.

## Advanced

**Cross-account Glue catalog ID and custom Glue endpoint**

* **Glue catalog ID**: Set the 12-digit AWS account ID when writing to a Glue catalog in a different AWS account. Leave empty to use the caller's default account catalog.
* `glueEndpoint` *(API only)*: Optional custom Glue API endpoint URL (for example, a VPC interface endpoint or LocalStack endpoint). When `glueEndpoint` is set, you must also configure `storage.s3.endpoint`.

**S3-compatible storage and custom catalog properties (API only)**

* Glue does not support GCS or Azure ADLS storage—warehouses must use `s3://`.
* To write to an S3-compatible endpoint or force path-style addressing, configure `storage.s3` via the API as described in [Object storage backends](/docs/destinations/iceberg/storage-backends).
* Additional non-reserved Glue properties can be passed in `properties` via the API. See [Reserved properties](/docs/destinations/iceberg/storage-backends#reserved-properties) for keys that are rejected.

## Next steps

* Tune file sizes, compression, partitioning, and scheduled table maintenance in [Tuning, partitioning, and maintenance](/docs/destinations/iceberg/tuning-and-maintenance).