Keep AWS SDK v1's default credentials chain where its environment variable aliases are used
Apache 2.0When the repository references the AWS_ACCESS_KEY or AWS_SECRET_KEY environment variables, which only AWS SDK v1 reads, DefaultAWSCredentialsProviderChain is replaced with a generated LegacyDefaultCredentialsChain. It implements v2's AwsCredentialsProvider with v1's order and names: environment variables with aliases, v1 system properties, web identity, profile, then container or instance profile. Every swap is reported.
org. openrewrite. aws. sdk. MigrateAwsDefaultCredentialsChainEnvAliasesOptional
Whether to generate the helper classes that the changes use. Compositions that limit where helpers are generated set it to false and generate them with org.openrewrite.aws.sdk.GenerateAwsSdkV2Helpers. Defaults to true.
mod run . --recipe= org. openrewrite. aws. sdk. MigrateAwsDefaultCredentialsChainEnvAliasesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.