Migrate AWS SDK v1 credentials and regions that v2-migration does not map

Apache 2.0

Runs before software.amazon.awssdk.v2migration.AwsSdkJavaV1ToV2 and converts the credential and region types it has no mapping for: user AWSCredentialsProvider implementations, anonymous, EC2/container, web identity token, assume role and properties-file credentials, v1 Region, RegionUtils and DefaultAwsRegionProviderChain. Where the repository references the AWS_ACCESS_KEY/AWS_SECRET_KEY environment variables, the default credentials chain keeps v1's order and aliases through a generated class.

org.openrewrite.aws.sdk.MigrateAwsCredentialsAndRegionResiduals
mod run . --recipe=org.openrewrite.aws.sdk.MigrateAwsCredentialsAndRegionResiduals

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.