-
Notifications
You must be signed in to change notification settings - Fork 49
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
Timestream doesn't support running with localstack #1413
Comments
Hi, thanks for the report. Have you tried using a custom endpoint provider with a fixed endpoint. There's an example of that here in our documentation. It would look something like this: S3Client.fromEnvironment {
endpointProvider = object : S3EndpointProvider {
override suspend fun resolveEndpoint(params: S3EndpointParameters): Endpoint = Endpoint("https://endpoint.example")
}
} |
@0marperez thanks for the suggestion,I tried that it still running with endpoint discoverer:
As far as I can see the code won't skip discovery: With that said, I think it will be great either providing the similar logic with |
@yibo-long I am able to override TimestreamWriteClient.fromEnvironment {
region = "..."
endpointProvider = object : TimestreamWriteEndpointProvider {
override suspend fun resolveEndpoint(params: TimestreamWriteEndpointParameters): Endpoint = Endpoint("https://endpoint.example")
}
} It's a bit different to what you have currently. |
Hi @yibo-long just checking in, did the code above help you become unblocked? |
Hi @0marperez, unfortunately no. As you can see from my screenshot of the generated SDK code, |
Quick update, we documented the bugs causing this issue and created internal issues to keep track of them (SDK-KT-354 and SDK-KT-359) |
Describe the bug
When running with localstack-pro for Timestream, it throws below errors:
This happens for both timestream-query and timestream-write
the client is created as:
Regression Issue
Expected behavior
it should be run correctly as similar codes with
software.amazon.awssdk:timestreamwrite
orsoftware.amazon.awssdk:timestreamquery
.Current behavior
Throws the error.
Steps to Reproduce
run with the code below with localstack-pro testcontainer
Possible Solution
It seems to be that kotlin sdk didn't disable endpoint discovery like aws-sdk-java-v2:
for those EndpointDiscoverer in kotlin sdk, it should not try to discover host with describeEndpoints if endpoint is already overriden.
Context
No response
AWS SDK for Kotlin version
1.3.21
Platform (JVM/JS/Native)
JDK21
Operating system and version
linux/mac
The text was updated successfully, but these errors were encountered: