← All recipes
Moderne licensed

Require aws-sdk-go-v2 instead of aws-sdk-go

Recipe IDorg.openrewrite.golang.migration.UpdateAwsSdkDependencyArtifactgithub.com/moderneinc/recipes-go

Require the github.com/aws/aws-sdk-go-v2 modules the migrated source imports, and drop github.com/aws/aws-sdk-go once no file imports it. Only the core, config and credentials modules are pinned here; every service is its own independently versioned module, so go mod tidy adds those from the imports. Does not sync go.sum.

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.UpdateAwsSdkDependency

If the recipe isn’t available locally, install it with:

mod config recipes go install github.com/moderneinc/recipes-go