{"id":43870549,"url":"https://github.com/quiltdata/titanic","last_synced_at":"2026-02-06T14:28:27.269Z","repository":{"id":309803762,"uuid":"965802801","full_name":"quiltdata/titanic","owner":"quiltdata","description":"Everythings runs into Iceberg","archived":false,"fork":false,"pushed_at":"2026-01-30T20:39:13.000Z","size":495,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-31T12:34:09.559Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/quiltdata.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-13T23:36:23.000Z","updated_at":"2025-09-16T14:29:51.000Z","dependencies_parsed_at":"2025-08-28T23:10:20.694Z","dependency_job_id":"75f15559-8866-4648-b4df-71d41a27c440","html_url":"https://github.com/quiltdata/titanic","commit_stats":null,"previous_names":["quiltdata/titanic"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/quiltdata/titanic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quiltdata%2Ftitanic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quiltdata%2Ftitanic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quiltdata%2Ftitanic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quiltdata%2Ftitanic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quiltdata","download_url":"https://codeload.github.com/quiltdata/titanic/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quiltdata%2Ftitanic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29164854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T12:44:37.655Z","status":"ssl_error","status_checked_at":"2026-02-06T12:44:13.991Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-06T14:28:26.588Z","updated_at":"2026-02-06T14:28:27.254Z","avatar_url":"https://github.com/quiltdata.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Titanic - AWS Data Lake Table Merger\n\nAutomatically merges the packages and objects views from every bucket into a single queryable Iceberg catalog while maintaining data consistency and avoiding duplicates.\n\n**🚀 Quick Start**: Download the [latest release](https://github.com/quiltdata/titanic/releases/latest) and follow the deployment steps in [the deployment README](bin/README.md).\n\n## Usage\n\nAfter deployment:\n\n```bash\n# Process all buckets manually\nnpm run deploy:event\n\n# Monitor logs\nnpm run deploy:logs recent 5 # show last 5 minutes\n```\n\n## Table Structure\n\nThe system creates three normalized Iceberg tables:\n\n- **Package Revisions** (`package_revision`): Specific versions of packages\n- **Package Tags** (`package_tag`): Named versions (like `latest`)\n- **Package Entries** (`package_entry`): Individual files within packages\n\nSee [doc/schema.md](doc/schema.md) for detailed schema design.\n\n## Architecture\n\nThe Titanic Stack creates a data lake table merger that:\n\n1. **Listens for package revision events** via EventBridge\n2. **Merges Quilt package metadata** into consolidated Athena tables\n3. **Supports both Glue and S3 Tables** formats\n4. **Provides unified views** of package revisions, tags, and entries\n\n### Key Components\n\n- **Lambda Function**: Processes events and manages table operations\n- **S3 Buckets**: Store Glue tables and S3 Tables data\n- **EventBridge Rule**: Routes package events to the Lambda function\n- **IAM Roles**: Provide necessary permissions for cross-service access\n\n## Troubleshooting\n\n### Common Issues\n\n#### ❌ \"Cannot find or access the specified bucket\"\n\n- **Cause**: CDK stack didn't deploy properly or missing S3 bucket\n- **Solution**: Check deployment with `npm run deploy:outputs` and redeploy if needed: `npm run cdk`\n\n#### ❌ \"User is not authorized\" / Permission denied\n\n- **Cause**: Wrong policy ARN or insufficient permissions\n- **Solution**: Verify `QUILT_READ_POLICY_ARN` is correct and check AWS credentials: `aws sts get-caller-identity`\n\n#### ❌ \"Table not found\" errors\n\n- **Cause**: Source Quilt views don't exist\n- **Solution**: Verify views exist: `aws glue get-tables --database-name $ATHENA_DATABASE_NAME`\n\n#### ❌ \"Missing required environment variables\"\n\n- **Cause**: `.env` file missing or incomplete\n- **Solution**: Copy `env.example` to `.env` and edit with your values\n\n#### ❌ Template not found\n\n- **Cause**: Running deployment from wrong directory\n- **Solution**: Ensure you're running `./deploy.sh` from the package directory\n\n#### ❌ AWS Permissions Errors\n\n- **Cause**: Insufficient IAM permissions\n- **Solution**: Verify AWS credentials have necessary permissions to create CloudFormation stacks\n\n### Diagnostic Commands\n\n```bash\n# Check stack status and resources\nnpm run deploy:outputs\naws cloudformation describe-stacks --stack-name TitanicStack\naws s3 ls | grep titanic\naws glue get-tables --database-name $ATHENA_DATABASE_NAME\n\n# Monitor logs\nnpm run deploy:logs recent 30      # Last 30 minutes\nnpm run deploy:logs errors         # Only errors\n\n# View deployment events (if stack fails)\naws cloudformation describe-stack-events --stack-name TitanicStack\n```\n\n### When to Redeploy\n\n**Full redeploy needed**: First deployment failed, changing `USE_S3_TABLE` setting, missing AWS resources\n\n**Simple restart sufficient**: Lambda code changes only, temporary AWS API issues\n\n## Cleanup\n\n```bash\nnpm run destroy                     # Delete everything\nnpm run destroy:buckets:contents    # Delete data only\n```\n\n## Documentation\n\n- **[doc/DEVELOP.md](doc/DEVELOP.md)** - Building directly from CDK\n- **[doc/SCHEMA.md](doc/schema.md)** - Table schema design and decisions\n\n## Version Information\n\nThis package uses pre-built Lambda assets from the public S3 bucket:\n\n- **Assets bucket**: Generated deterministically as `titanic-assets-{account}-{region}`\n- **Lambda code**: `lambda/merge-tables.zip`\n- **Strategy**: Always uses the latest available version\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquiltdata%2Ftitanic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquiltdata%2Ftitanic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquiltdata%2Ftitanic/lists"}