Generated banner for Migrating Hive Tables To S3 Tables
Generated logo for Migrating Hive Tables To S3 Tables

Migrating Hive Tables To S3 Tables

AWSOfficialPublished by AWS

  • Skill
  • Workflow
  • Cloud and DevOps
  • Apache-2.0
  • No issues found

From the author

Migrates a Glue Data Catalog Hive table (Parquet) into Amazon S3 Tables as managed Iceberg using the native S3 Tables migration API (StartTableMigration, SyncTableMigration, CompleteTableMigration), a managed service call, not a self-run CTAS, Glue, or EMR job. The source is a Hive table; an Iceberg source is never in scope, even when the destination is S3 Tables. Covers plan review, migrate, sync, complete, and validate. Same-account, same-region, Glue Hive Parquet source only. Use when the request asks to migrate or import a Hive table into S3 Tables, or names the native migration API. Not applicable to converting a self-managed or standard Iceberg table into S3 Tables (ingesting-into-data-lake covers that), self-run CTAS/Glue-ETL/Spark migrations (ingesting-into-data-lake), or creating empty tables (creating-data-lake-table).
— the description by AWS

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

This skill provides a structured workflow for migrating existing Glue Data Catalog Hive Parquet tables into Amazon S3 Tables as managed Iceberg tables. It utilizes the native S3 Tables migration API to handle planning, data copying, and synchronization. The process includes rigorous pre-migration guardrails, plan review, and post-migration validation to ensure data integrity and compatibility before final cutover.

What it does

  • Performs pre-migration compatibility checks on source Glue Hive tables.
  • Generates and reviews migration plans for schema and object compatibility.
  • Executes the migration process using native S3 Tables API calls.
  • Synchronizes the destination table with the source until final cutover.
  • Validates row counts and sample data parity between source and destination.
  • Promotes the destination table to a read-write state upon successful validation.

When to use it

  • When migrating a Glue Data Catalog Hive Parquet table to S3 Tables.
  • When you need to keep the destination table in sync with the source before cutover.
  • When you want to use the native S3 Tables migration service rather than manual ETL jobs.
  • When you need to verify compatibility and plan the migration before execution.

Advantages

  • Uses native, managed service calls for reliable table migration.
  • Includes built-in validation steps to ensure data parity.
  • Supports incremental synchronization to minimize downtime.
  • Provides clear guardrails to prevent common configuration errors.

Usage examples

“Migrate my Glue Hive table sales_data into my table bucket sales-bucket.”
The agent will initiate the pre-migration checks, generate a migration plan, and present it for your approval.
“Keep my migrated table in sync with the source before cutover.”
The agent will execute the SyncTableMigration API to apply any recent changes from the source to the destination.
“Complete my migrated table.”
The agent will perform final validation and promote the destination table to read-write status.

Install

  1. Download the skill as a ZIP:

    https://autogineer.com/agent-skills/aws/migrating-hive-tables-to-s3-tables/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip migrating-hive-tables-to-s3-tables.zip -d .agents/skills

Documentation by AWS

Migrating Hive Tables to S3 Tables

Contents

  • Overview

  • Before you migrate

  • When to use

  • When NOT to use (use another skill)

  • Scope and constraints

  • The 6 migration APIs

  • Migration lifecycle

  • Pre-migration guardrails

  • Post-migration guardrails

  • Key API shapes

  • Security considerations

  • References

Overview

This skill guides an agent through migrating one Glue Hive Parquet table into an S3 table bucket with the native S3 Tables migration API. Amazon S3 Tables plans the migration, reports column and object compatibility, copies the data, and keeps the destination in sync with the source until you complete it. Your coding agent, following this skill, runs preflight checks, starts the migration, presents the plan for approval, monitors progress, completes the migration, and validates the result.

When the AWS MCP Server is available, use it to load this skill and its references (aws___retrieve_skill, with file="references/<name>.md") and to run the AWS calls.

Before you migrate

Agent instruction: You MUST present the migration plan and obtain explicit user approval before any step that changes tables, data, metadata, or catalog entries, and before any IAM, KMS, or S3 bucket change (creating or editing a role or policy, editing a key policy, creating a report bucket). Show the exact JSON or command first. For a key policy, read it with get-key-policy, add one statement, and never replace the whole policy. The plan MUST list:

  • the source table and the destination table bucket, namespace, and table name;

  • the write paths that will change (ETL jobs, streaming or ingest, INSERT/MERGE, CDC);

  • the query engines and downstream consumers that read the table;

  • the datasets, saved queries, and permissions that reference the old Glue table or S3 prefix.

Up-front approval in the user's request (naming the source, destination, and intent to migrate) covers only read-only checks and a Start with plan review. Approving the plan, accepting any setNull or drop policy, Complete, and any delete always need explicit approval during the conversation. If the actual state differs from what was approved (a different schema, partition layout, row count, or resource), stop, explain the difference, and get approval again.

Confirm these constraints with the user as part of the plan:

  • Every writer to the destination writes through an Iceberg-aware engine (for example Athena, EMR or Glue with Iceberg). Writers that write Parquet files directly to S3 will not work.

  • Every reader supports Iceberg and the S3 Tables catalog.

  • Jobs and queries move from the Glue Hive table to the S3 Tables catalog reference.

  • The source is not changed. Keep writers on the source until the destination is validated.

  • Validate row counts and sample values (references/validation.md) before moving production traffic.

See Migrating tables to S3 Tables for the full list of supported sources and limits.

Runtime: works with or without the AWS MCP server; steps use AWS CLI syntax. The AWS MCP server is recommended for sandboxed execution and audit logging. The migration commands are part of aws s3tables; if an older CLI lacks them, see references/api-setup.md.

When to use

Use this skill when the source is a Glue Data Catalog Hive table with Parquet data (TableType=EXTERNAL_TABLE, Hive Parquet SerDe) and the destination is an S3 table bucket in the same account and Region:

  • Migrating that table into S3 Tables as managed Iceberg with the native migration API.

  • Keeping the migrated table in sync with the active Hive source before cutover.

When NOT to use (use another skill)

The names below are other agent skills. For these requests, do not use this skill; load the named skill instead. When asked when not to use this skill, list every case:

  • A self-run CTAS, Glue ETL, or EMR/Spark migration into Iceberg: use the ingesting-into-data-lake skill (this skill covers only the managed migration API).

  • Converting a self-managed or standard Iceberg table: use the ingesting-into-data-lake skill.

  • Loading raw files (Parquet with no Glue table, CSV, JSON) or other sources (JDBC, Snowflake, BigQuery, DynamoDB): use the ingesting-into-data-lake skill.

  • Creating a new empty Iceberg table: use the creating-data-lake-table skill.

  • Running or managing Athena queries: use the querying-data-lake skill.

  • Locating tables or assets: use the finding-data-lake-assets skill. Auditing the catalog: use the exploring-data-catalog skill.

  • Setting up Glue connections: use the connecting-to-data-source skill.

  • Any destination other than S3 Tables.

Prompt patterns (trigger phrasings)

  • "Migrate my Glue Hive table <db>.<tbl> into my table bucket <name>."

  • "Import an existing Hive table into S3 Tables using the native migration API."

  • "Move my Parquet Hive table to Iceberg without running CTAS or a Glue/Spark job."

  • "Use StartTableMigration to convert <tbl>."

  • "Keep my migrated table in sync with the source before cutover" → Sync.

  • "Complete my migrated table" → Complete.

  • "Check the status or plan of migration <id>" → Get.

  • "List my table migrations" → List.

Scope and constraints

  • Source: Glue Hive Parquet table in the same account and region as the destination table bucket.

  • Destination: an existing S3 table bucket and namespace; the migration creates the table.

  • Not supported (confirm the current list in the S3 Tables migration guide): Lake Formation registered tables, partitions outside the table location, non-Parquet formats, Iceberg sources, cross-account, SSE-C, and archived storage classes. Check these in preflight and stop if any apply. For a Lake Formation registered table, tell the user it is not supported and suggest contacting AWS Support or their account team with the migration ID to request support. Never change Lake Formation settings.

  • Compatibility problems are reported during planning. Always review the plan before approving.

  • All-or-nothing copy: if a single object fails, the whole migration fails. A succeeded run has no failed objects.

  • Three reports are written to a general-purpose bucket you supply: table compatibility, object compatibility, and object migration.

  • Cost and duration: the migration writes a second copy of the data; plan for roughly double storage until the source is decommissioned. Large tables can take hours.

  • Quotas: see S3 Tables quotas.

  • Migration policies: by default an incompatible column fails the run. incompatibleValuesPolicy: setNull and unmatchedSourceFieldsPolicy: drop apply to the whole column and the run still reports succeeded. Treat any setNull or dropped column as data loss that needs explicit approval.

The 6 migration APIs

APIPurposePhase
StartTableMigrationPlan and begin a migration. With --review-migration-plan, pauses at pendingReview.Start
GetTableMigrationReturns state, hasValidPlan, planningStats, migrationStats, migrationOutput, failureReason.Track, review
UpdateTableMigrationApprove (--requested-state queued) or cancel.Approve
SyncTableMigrationApply source changes since the last plan; repeat until current.Sync
CompleteTableMigrationPromote the destination to read-write. Takes --table-arn. Returns an empty body; the migration state stays succeeded. Confirm with get-table (managedByService is null).Complete
ListTableMigrationsList migrations for one table bucket or table.Discover

Request and response shapes are in references/lifecycle.md.

Migration lifecycle (phases)

  1. Preflight → references/preflight.md, references/iam-roles.md

  2. Start and plan: start-table-migration --review-migration-plan; planning → pendingReview.

  3. Review: get-table-migration; read the compatibility reports and present the plan for approval.

  4. Approve and migrate: update-table-migration --requested-state queued; poll migrating → succeeded.

  5. Sync (optional): sync-table-migration; repeat until current.

  6. Validate: on the succeeded table, before Complete, query the destination in Athena and compare with the source → references/validation.md. Validation is part of every migration: run the row-count and sample checks without being asked, unless the user opts out. If counts are short, reconcile with sync-table-migration (not possible after Complete).

  7. Complete: once parity holds and the user approves, complete-table-migration --table-arn ..., then confirm get-table shows managedByService null.

Phases 2 to 7 are in references/lifecycle.md.

Pre-migration guardrails (run every time, before Start)

Do not call start-table-migration until all of these pass. Commands are in references/preflight.md and references/iam-roles.md.

  1. Plan approved. The plan in Before you migrate has been presented and approved.

  2. Credentials and region. sts get-caller-identity succeeds; the source and destination are in the same account and region.

  3. Source is Glue Hive Parquet. TableType=EXTERNAL_TABLE, Hive Parquet format and SerDe; not Iceberg, not ACID/transactional, no storage handler. Record catalogId.

  4. Partition locations. Every partition location is under the table location; partitions outside it fail planning with UNSUPPORTED_PARTITIONS. Check for partition projection and skip.header.line.count.

  5. Lake Formation. If the source table or its location is registered with Lake Formation, stop: not supported (confirm current support in the migration guide). Do not change Lake Formation settings.

  6. Destination exists. The table bucket and namespace exist. A missing namespace fails Start with NotFoundException.

  7. Migration role trust. One statement, principal migration.s3tables.amazonaws.com, conditions aws:SourceAccount and aws:SourceArn.

  8. Migration role permissions. Scoped source S3 and Glue read, destination write, report bucket write. The caller also needs iam:PassRole on the role, conditioned on iam:PassedToService = migration.s3tables.amazonaws.com.

  9. KMS. If data is encrypted with a customer managed key, grant kms:Decrypt and kms:GenerateDataKey. For an SSE-KMS destination, the key policy must also allow maintenance.s3tables.amazonaws.com, or table creation fails and planning never completes (see preflight §7 and IAM roles).

Post-migration guardrails (verify success before Complete)

Full detail in references/validation.md.

Run checks 1 to 7 on the succeeded table before Complete, because Sync is refused after Complete. After Complete, only confirm that get-table shows managedByService null.

  1. Terminal state: state: succeeded, failureReason null.

  2. Object accounting: objectsFailedMigration is 0 and objectsMigrated matches the planned object count. If it differs, check the source object count (an extra file from an earlier sync is legitimate) and confirm with row-count parity before treating it as a failure.

  3. Row count parity: destination count(*) equals source.

  4. Partition parity: per-partition row counts match (partitioned tables).

  5. Spot-check rows: sample values match, including converted columns such as timestamps.

  6. Schema review: every column's type label (Lossless, Widened, Converted) was accepted in the plan; none is Incompatible or Unsupported.

  7. Catalog naming: query as "s3tablescatalog/<table-bucket>"."<namespace>"."<table>".

Key API shapes

  • sourceType = glueTable (top level) and source = {"glueTable":{"catalogId":"<acct>","databaseName":"<db>","tableName":"<tbl>"}}. catalogId is required. The role member is roleARN.

  • --destination-table = {"tableBucketARN":"<arn>","namespace":"<ns>","name":"<tbl>"}.

  • migrationOutput is required: {bucket, prefixes}, where bucket is a general-purpose bucket ARN and prefixes optionally sets tableCompatibilityReport, objectCompatibilityReport, objectMigrationReport.

  • Optional dataMigration.migrationPolicies: unmatchedSourceFieldsPolicy (fail | drop), incompatibleValuesPolicy (fail | setNull). Both default fail.

  • Do not add sts:ExternalId to the trust policy; Amazon S3 Tables does not send one.

  • States: new → planning → pendingReview → queued → migrating → succeeded, plus failed, cancelling, cancelled.

  • On cancel or failure the destination table is kept. If hasValidPlan is true, resume with sync-table-migration; otherwise delete the table and start again. Rules in references/lifecycle.md.

  • Complete only a succeeded migration. Completing twice returns 409 ConflictException or 400 BadRequestException; treat either as "already done."

  • Athena reference: "s3tablescatalog/<table-bucket>"."<namespace>"."<table>". Requires the table bucket to be integrated with the Glue Data Catalog.

Security considerations

  • Instructions only; no shipped code or dependencies.

  • Migration role: trusts migration.s3tables.amazonaws.com with aws:SourceAccount and aws:SourceArn conditions; permissions scoped to the exact source, destination, and report resources.

  • Encryption: SSE-KMS on the destination table bucket and report bucket is recommended, with TLS-only bucket policies. A customer managed destination key must allow maintenance.s3tables.amazonaws.com in its key policy.

  • Logging: enable CloudTrail for the migration APIs and role assumptions, S3 data-event or server-access logging on the buckets involved, and CloudWatch alarms on failures. Encrypt log destinations.

  • No secrets in generated commands, reports, or state files.

References

FileTopic
references/api-setup.mdConfirming the migration commands are in the aws s3tables CLI
references/preflight.mdCredentials, source checks, partition locations, Lake Formation, destination
references/iam-roles.mdCaller policy and migration role trust and permissions
references/lifecycle.mdState machine and per-phase calls: start, review, approve, sync, complete
references/validation.mdAthena row-count, aggregate, and sample checks; catalog naming
references/troubleshooting.mdfailureReason codes and fixes

Files

references/preflight.md

Pre-flight guardrails

Run ALL of these before start-table-migration. Each addresses a real failure mode.

Contents

  • 0. Plan approval gate

  • 0.5 Resource discovery

  • 1. Credentials and region

  • 2. Source is Glue Hive Parquet

  • 3. Partition locations

  • 4. Source prefix

  • 5. Destination bucket and namespace

  • 6. Lake Formation (stop if registered)

  • 7. IAM role and KMS

  • Checklist

0. Plan approval gate

A conversation gate, not a CLI check. Follow the approval rule in "Before you migrate" in SKILL.md; it covers every change, including IAM, KMS, and bucket changes. Read-only checks below may run first to build the plan.

0.5 Resource discovery (discover first, then confirm before proceeding)

The only inputs you need from the customer are the source table, the destination table bucket, and the destination table name. Discover everything else, and ask only if discovery fails or is ambiguous:

  • Account id and caller: from aws sts get-caller-identity (§1). Do not ask.

  • Migration service role: search for an existing one before proposing to create it:

    aws iam list-roles --query "Roles[?contains(RoleName,'igration') || contains(RoleName,'S3Tables')].RoleName"

    This name match is a coarse first pass (it also matches DMS, MigrationHub, and partner roles). A role is a real candidate only if its trust policy names migration.s3tables.amazonaws.com with aws:SourceAccount/aws:SourceArn; inspect trust and inline policies (see references/iam-roles.md). Present a matching role (ARN, trust principal, how it matches) and confirm before using it. If none exists, offer to create one. If a role is missing a required permission, report what is missing and let the user fix it rather than modifying their role.

  • Report bucket: propose an existing general-purpose bucket in the migration region. Do not reuse an Athena-results or other broadly readable bucket; the reports contain schema and data-layout detail. Verify before using it (offer to create one if none passes):

    • Ownership: aws s3api head-bucket --bucket <B> --expected-bucket-owner <ACCT> succeeds.

    • Same region: aws s3api get-bucket-location --bucket <B> returns the migration region. An empty or null LocationConstraint means us-east-1. A cross-region report bucket fails with reportBucketNotSupported.

    • Not public: aws s3api get-public-access-block --bucket <B> shows all four settings true (a NoSuchPublicAccessBlockConfiguration error is a FAIL), and aws s3api get-bucket-policy-status --bucket <B> reports IsPublic: false.

    • Encrypted: aws s3api get-bucket-encryption --bucket <B> shows SSE-S3 or SSE-KMS.

    • Owner enforced: aws s3api get-bucket-ownership-controls --bucket <B> shows BucketOwnerEnforced.

    • TLS only: the bucket policy denies requests where aws:SecureTransport is false. If it does not, read the current policy with get-bucket-policy, add one deny statement, show the user the full result, and apply it only after approval. Never replace the whole policy.

    • Retention: reports contain schema details and object keys. Ask how long to keep them. When your coding agent creates a new report bucket (after approval), it sets all four public-access-block settings, default encryption, BucketOwnerEnforced, a TLS-only bucket policy, and a lifecycle rule that expires report objects after the retention period the user chose.

  • Namespace: default to the source database name, normalized: S3 Tables namespaces allow only lowercase letters, digits, and underscores. Lowercase it, replace hyphens and periods with underscores, show the mapping, and confirm (reuse it if it already exists, §5).

Take facts from get-caller-identity without asking. For resources you select or default (role, report bucket, namespace), state what you found and confirm before proceeding.

1. Credentials and region

aws sts get-caller-identity
  • Must succeed. RC 255 or empty output usually means expired credentials; refresh and retry.

  • The source Glue region, the destination table bucket region, and --region MUST match. Same account and same region is a hard constraint.

2. Source is Glue Hive Parquet

aws glue get-table --catalog-id <ACCT> --database-name <DB> --name <TBL> \
  --query '{type:Table.TableType, informat:Table.StorageDescriptor.InputFormat, outformat:Table.StorageDescriptor.OutputFormat, serde:Table.StorageDescriptor.SerdeInfo.SerializationLibrary, location:Table.StorageDescriptor.Location, partitions:Table.PartitionKeys[].Name, params:Table.Parameters, serdeParams:Table.StorageDescriptor.SerdeInfo.Parameters, lf:Table.IsRegisteredWithLakeFormation}'
How to know it is a Hive source

All three together:

  • Table.TableType = EXTERNAL_TABLE.

  • InputFormat / OutputFormat = org.apache.hadoop.hive.ql.io.parquet.MapredParquet{Input,Output}Format.

  • SerdeInfo.SerializationLibrary = org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe.

Not a valid source (stop and tell the user):

  • An Iceberg table (Parameters.table_type = ICEBERG, or Iceberg format classes). It is already Iceberg.

  • A managed table (TableType = MANAGED_TABLE); planning fails with sourceNotSupported.

  • Any non-Parquet format (ORC, Avro, JSON, CSV, text).

Unsupported table properties (stop if present)

Check Table.Parameters and SerdeInfo.Parameters from the call above:

PropertyMeansAction
transactional = true, or transactional_properties setHive ACID tableStop: not supported
storage_handler setTable backed by a storage handler (for example HBase, DynamoDB, Kafka)Stop: not supported
projection.enabled = truePartition projection; partitions are not in the catalog, so planning cannot enumerate themStop and explain; the table needs catalogued partitions
skip.header.line.count setText-file header setting; unexpected on ParquetTreat as a sign the table is not really Parquet; confirm the format before continuing

Caveat: these fields prove Hive Parquet metadata, not that every data file is valid Parquet. The object compatibility report from planning is the follow-on gate.

  • Record the account id as catalogId; it is required in --source.

Lowercase names (capitals break Athena/Glue visibility)

S3 Tables, the Glue Data Catalog, and Lake Formation do not support capital letters in table or column names. A table with uppercase names migrates and reports succeeded, but Athena then fails with GENERIC_INTERNAL_ERROR: ... Invalid table or column names. Confirm the source column names and destination table name are lowercase before Start. Ref: Querying S3 tables with Athena.

3. Partition locations

Every partition location must be under the table location. Partitions stored elsewhere (a different prefix or bucket, common after ALTER TABLE ADD PARTITION ... LOCATION) fail planning with UNSUPPORTED_PARTITIONS. Skip this section for an unpartitioned table.

TABLE_LOC=$(aws glue get-table --catalog-id <ACCT> --database-name <DB> --name <TBL> \
  --query 'Table.StorageDescriptor.Location' --output text)

aws glue get-partitions --catalog-id <ACCT> --database-name <DB> --table-name <TBL> \
  --query 'Partitions[].StorageDescriptor.Location' --output text \
  | tr '\t' '\n' | awk -v p="${TABLE_LOC%/}/" 'index($0, p) != 1' | head -20
  • No output: all partitions are under the table location. Continue.

  • Any output: those partitions are outside it. Stop, show the user the locations, and explain that the table cannot be migrated as is. Do not move data or edit partitions for them.

  • Record the partition count (get-partitions ... --query 'length(Partitions)'); compare it with planningStats.partitionCount at plan review.

  • get-partitions paginates; the CLI follows pages automatically, but very large tables can take a while. Use --segment for parallel listing if needed.

4. Source prefix (let planning classify it)

Start has no exclusion parameter. Do not remove objects from the source prefix; the source is not modified, and markers such as _SUCCESS are read by other jobs.

Planning's object compatibility report names every object it could not process. Non-data objects (keys with _/. path components, $folder$ markers, zero-byte objects) are recorded as non-data rather than failing the run. If a real data object is flagged, resolve it with the user.

Check one thing up front: a table Location under a _- or .-prefixed path component hides everything beneath it. A non-recursive listing (aws s3 ls s3://<SOURCE_BUCKET>/<PREFIX>/) is enough; do not run aws s3 ls --recursive over a large prefix.

5. Destination bucket and namespace exist

aws s3tables list-table-buckets --region <R>
aws s3tables list-namespaces --table-bucket-arn <DEST_BUCKET_ARN> --region <R>
  • If the namespace is missing, propose creating it (a missing namespace fails Start with NotFoundException (404)). Creating it is a change, so it is part of the approved plan:

aws s3tables create-namespace --region <R> --table-bucket-arn <DEST_BUCKET_ARN> --namespace <NS>
  • To validate in Athena, the destination table bucket must be integrated with the Glue Data Catalog; see references/validation.md §2.

6. Lake Formation (stop if registered)

Glue tables registered with Lake Formation are not supported (confirm current support in the migration guide). Planning fails with metadata.glueLakeFormation. Check both the table and its S3 location:

# Table flag (from §2): Table.IsRegisteredWithLakeFormation
aws glue get-table --catalog-id <ACCT> --database-name <DB> --name <TBL> \
  --query 'Table.IsRegisteredWithLakeFormation'

# Is the table location (or a parent) a registered data location?
aws lakeformation list-resources --query 'ResourceInfoList[].ResourceArn' --output text

Compare the registered ARNs with the table location (arn:aws:s3:::<bucket>/<prefix>); a registered parent prefix or bucket also counts.

  • If either check shows the table is governed by Lake Formation: stop and tell the user the table is not supported.

  • Do NOT change Lake Formation settings, deregister locations, or grant permissions to work around this. Those are governance decisions that belong to the customer's data lake administrators.

  • If list-resources is denied, say so and ask the user to confirm the registration status rather than assuming it is not registered.

7. IAM role trust, permissions, and KMS

See references/iam-roles.md: single migration.s3tables.amazonaws.com principal with aws:SourceAccount and aws:SourceArn, scoped permissions, report bucket write, and KMS.

  • If the source data or the report bucket uses a customer managed KMS key, the role needs kms:Decrypt (source) and kms:GenerateDataKey (report and destination writes) on that key.

  • If the destination table bucket uses SSE-KMS, the key policy must grant maintenance.s3tables.amazonaws.com kms:GenerateDataKey and kms:Decrypt. Without it, creating the encrypted table fails and planning never completes.

Pre-flight checklist (all must pass)

  • [ ] plan presented and approved (§0)

  • [ ] sts get-caller-identity succeeds; source and destination in the same account and region

  • [ ] source is Glue Hive Parquet (EXTERNAL_TABLE, Hive Parquet formats and SerDe); not Iceberg, not managed

  • [ ] no transactional, storage_handler, or projection.enabled properties; skip.header.line.count explained

  • [ ] catalogId recorded

  • [ ] source table and column names are lowercase

  • [ ] every partition location is under the table location; partition count recorded

  • [ ] table Location not under a _/. path component

  • [ ] destination table bucket and namespace exist (or namespace creation approved)

  • [ ] destination bucket integrated with the Glue Data Catalog if validating in Athena

  • [ ] table not registered with Lake Formation (table flag and data location both checked)

  • [ ] migration role trust and permissions verified; report bucket write covered

  • [ ] KMS key access and key policy covered if encrypted

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Needs an MCP server

Security

No issues found by our static scan· No issues found

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
AWS
Publisher
AWS (Official)
Source
aws/agent-toolkit-for-aws · skills/specialized-skills/analytics-skills/migrating-hive-tables-to-s3-tables · commit 0a218f8
Licence
Apache License 2.0 (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • NOTICE (added by AutoGineer from NOTICE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by AWS or AWS.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download migrating-hive-tables-to-s3-tables.zip