aws-sdk-kotlin
aws-sdk-kotlin copied to clipboard
AWS SDK does not work with ki shell
Describe the bug
I'm unable to use an AWS client from the interactive Kotlin shell ki.
Expected Behavior
- I can construct a service client.
Current Behavior
When I construct a service client, I get the following exception:
[1] :dependsOn aws.sdk.kotlin:s3:0.4.0-alpha
[2] import aws.sdk.kotlin.services.s3.S3Client
[3] val s3c = S3Client { region = "us-east-2" }
java.lang.ExceptionInInitializerError
at software.amazon.awssdk.crt.CrtResource.<clinit>(CrtResource.java:100)
at aws.sdk.kotlin.crt.io.TlsContext.<init>(TlsContextJVM.kt:15)
at aws.sdk.kotlin.runtime.http.engine.crt.CrtHttpEngine.<init>(CrtHttpEngine.kt:29)
at aws.sdk.kotlin.services.s3.DefaultS3Client.<init>(DefaultS3Client.kt:30)
at aws.sdk.kotlin.services.s3.S3Client$Companion.invoke(S3Client.kt:31)
at Line_6.<init>(Line_6.kts:1)
Steps to Reproduce
Run ki shell, type in commands as specified in the Current Behavior section.
Possible Solution
Context
Your Environment
- AWS Kotlin SDK version used: 0.4.0-alpha
- Platform (JVM/JS/Native): JVM
- Operating System and version: Ubuntu Linux 20.04