Migrate AWS SDK v1 properties-file credentials providers

Apache 2.0

Replaces PropertiesFileCredentialsProvider and ClasspathPropertiesFileCredentialsProvider, which have no v2 counterpart, with copies generated into the project that implement v2's AwsCredentialsProvider. They read the same accessKey, secretKey and accountId properties on every call, as v1 does.

org.openrewrite.aws.sdk.MigratePropertiesFileAwsCredentialsProviders

Optional

generateHelpersBoolean

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

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