How to migrate your code from AWS SDK for Java 1.x to 2.x - AWS SDK for Java 2.x

How to migrate your code from AWS SDK for Java 1.x to 2.x

You can migrate your existing SDK for Java 1.x applications in a couple ways.

  1. Automated approach by using the migration tool.

  2. Manual approach by incrementally replacing 1.x imports with 2.x imports.

We recommend that you start by using the migration tool. It automates much of the routine, replacement work from 1.x to 2.x code.

Since the preview release of the tool doesn't migrate all features, you'll need to search for remaining v1 code after running the tool. When you find code that the tool didn't migrate, follow the step-by-step instructions (manual approach) and use the migration guide articles to finish the migration.