Migrate a module from aws-sdk-go to aws-sdk-go-v2
Recipe ID
org.openrewrite.golang.migration.MigrateAwsSdkGoModuleToV2Artifactgithub.com/moderneinc/recipes-goMigrate the files whose github.com/aws/aws-sdk-go usage has a faithful aws-sdk-go-v2 form, and bring go.mod along with them. This is a partial migration by design: v2 replaced the session, the error types, the page iterators and the waiters outright, so a file holding one of those is left as it is. Run FindAwsSdkGoV1Usage to enumerate what remains, and go mod tidy to resolve the per-service modules.
Single recipeProprietary
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.golang.migration.MigrateAwsSdkGoModuleToV2If the recipe isn’t available locally, install it with:
mod config recipes go install github.com/moderneinc/recipes-go