-
Notifications
You must be signed in to change notification settings - Fork 645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AWS connectors: align client setup docs #2038
Conversation
@gabfssilva @regiskuckaertz could you have a look and check if I got it right? |
LGTM |
@@ -296,7 +310,7 @@ object Dependencies { | |||
ExclusionRule("software.amazon.awssdk", "netty-nio-client") | |||
), | |||
"org.mockito" % "mockito-core" % mockitoVersion % Test // MIT | |||
) | |||
) ++ JacksonDatabindDependencies |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
woops, good catch 🤭
👍 Looks great! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just some minor things to consider.
import software.amazon.awssdk.auth.credentials.{AwsBasicCredentials, StaticCredentialsProvider} | ||
import software.amazon.awssdk.services.lambda.LambdaAsyncClient | ||
|
||
val credentials = AwsBasicCredentials.create("x", "x") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[minor] I know isn't new code, but maybe we should add a comment link to best practices for AWS key management so users don't just copy and paste this and hardcode credentials. I found this resource: https://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html
Co-Authored-By: Sean Glover <sean@seanglover.com>
Good point about the credentials, @seglo |
Purpose
Align the docs how the AWS SDK clients are created using Akka HTTP as an underlying HTTP client.
References
References #2014
Changes