DEV Community

Discussion on: DynamoDB for our Kotlin Lambda function

Collapse
 
johndpelingo profile image
John Darryl Pelingo • Edited

Why do we need two packages from AWS?

implementation(platform("software.amazon.awssdk:bom:2.13.18"))
implementation("software.amazon.awssdk:dynamodb")
Enter fullscreen mode Exit fullscreen mode

What's the bom for? I find the documentation of AWS a bit confusing when browsing all Java packages.

Collapse
 
gautemeekolsen profile image
Gaute Meek Olsen

Hi, I agree that the documentation is confusing. That's a part I wish the AWS would improve.

So the bom package is for managing the versions of other AWS packages for us. As you see I don't need to specify the version for the dynamodb package. But I guess it's actually not beneficial until several AWS packages are used in the project.

You should be able to do something like this instead if you like (haven't tested it):

implementation("software.amazon.awssdk:dynamodb:2.15.33")
Enter fullscreen mode Exit fullscreen mode
Collapse
 
johndpelingo profile image
John Darryl Pelingo

Hello again!
Thanks for the reply! I think I figured it out after trying out stuff on my own. It's as you said and before that (1.x), people would have to install the dependencies one by one with their version. But now it's all "unified" under one version. So updating the AWS dependencies is not a huge pain, I guess.

It was a bit hard to navigate around the dependency management system of Java at the beginning as someone coming from yarn/npm install.