Back to list
bitsoex

aws-v2

by bitsoex

Bitso Java API Wrapper

34🍴 30📅 Jan 24, 2026

SKILL.md


name: aws-v2 description: > Migrate from AWS SDK for Java v1 (com.amazonaws) to v2 (software.amazon.awssdk). Use when projects need to move away from deprecated AWS SDK v1 to the modern v2 API. compatibility: Java projects using Gradle with AWS SDK dependencies metadata: version: "1.0.0" technology: java category: modernization tags: - aws - sdk - migration - dependencies

AWS SDK v2 Migration

Migrate Java projects from AWS SDK v1 (com.amazonaws) to v2 (software.amazon.awssdk).

When to Use

  • Project uses deprecated AWS SDK v1 (com.amazonaws.* imports)
  • Dependabot/security scans flag v1 vulnerabilities
  • Need features only available in v2 (async clients, HTTP/2, etc.)

Skill Contents

Sections

Available Resources

📚 references/ - Detailed documentation


Critical: MSK IAM Authentication

When migrating to AWS SDK v2, also update aws-msk-iam-auth if using Kafka with MSK IAM.

Error after migration:

NoClassDefFoundError: com/amazonaws/auth/AWSCredentialsProvider

Fix: Update aws-msk-iam-auth to 2.3.5 (AWS SDK v2 compatible).

See references/migration-patterns.md for details.

Migration Strategy (Priority Order)

PriorityStrategyWhen to Use
1Update libraryA newer version of the library uses v2
2Update BOMv1 comes from Spring Boot or other BOM
3Dependency substitutionReplace v1 artifact with v2 equivalent
4Direct code migrationOnly if no library update available

Quick Start

1. Identify v1 Usages

# Find all files with v1 imports
grep -r "import com.amazonaws" --include="*.java" . | grep -v "/build/"

# Check dependency tree
./gradlew dependencies --configuration runtimeClasspath | grep -B5 "com.amazonaws"

2. Apply Migration

See references/migration-patterns.md for detailed code migration patterns.

Dependency Substitution (in root build.gradle):

allprojects {
    configurations.configureEach {
        resolutionStrategy.dependencySubstitution {
            substitute module("com.amazonaws:aws-java-sdk-s3")
                using module("software.amazon.awssdk:s3:${libs.versions.aws.sdk.v2.get()}")
                because "Migrate to AWS SDK v2"
        }
    }
}

3. Validate

# Verify no v1 imports remain
grep -r "import com.amazonaws" --include="*.java" . | grep -v "/build/"

# Build and test
./gradlew clean build test

References

ReferenceContent
references/migration-patterns.mdCode migration patterns for S3, SQS, SNS, Lambda

This skill is referenced by: /upgrade-to-aws-sdk-v2

Score

Total Score

65/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

+5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon