How to Migrate Files from Amazon S3 to Neon's Branch-Aware Object Storage

Neon's object storage is S3-compatible, meaning existing AWS SDK code for common operations like PutObject, GetObject, and presigned URLs works without modification. The migration primarily involves updating the S3 client configuration to point to Neon's endpoint, pinning the region to us-east-2, and enabling forcePathStyle. Actual data transfer is handled through a straightforward list-and-copy loop running two S3 clients simultaneously — one sourcing from AWS and one writing to Neon. Buckets are declared in code rather than created via a console, and credentials are injected per branch. However, some S3 features do not carry over, including bucket policies, event notifications, Lambda triggers, storage classes, and cross-region replication.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in