amazon-kinesis-client icon indicating copy to clipboard operation
amazon-kinesis-client copied to clipboard

Overriding Endpoint with Kinesis private link Not Supported

Open chadp123 opened this issue 6 years ago • 7 comments

Using 1.9.0

image

image

chadp123 avatar Mar 13 '18 20:03 chadp123

In the process of looking at the code to submit fix I realized there is a workaround which is to set the AwsKinesisAgent explicitly via Worker.Builder().kinesisClient(client).

Makes this issue less pressing.

chadp123 avatar Mar 13 '18 23:03 chadp123

In the process of looking at the code to submit fix I realized there is a workaround which is to set the AwsKinesisAgent explicitly via Worker.Builder().kinesisClient(client).

Can you explain how/where this workaround can be applied in order to patch the issue? I have this problem, but unfortunately I don't understand java well enough to understand how to apply what you are saying.

Using the KCL via the Kinesis Python client library.

mkrygeri avatar May 11 '18 14:05 mkrygeri

In java you use the AmazonKinesisClientBuilder to create the client and set the endpointConfiguration. I will have to look at the Python library to see if equivalent exists.

		AmazonKinesisClientBuilder builder = AmazonKinesisClientBuilder.standard().withCredentials(credentials)
			.withEndpointConfiguration(new EndpointConfiguration(endpoint, regionName));
	

chadp123 avatar May 22 '18 14:05 chadp123

It's currently not possible to override the client in the Python Library. We're currently working on the MultiLang Daemon for 2.0, and will look into supporting private link when explicitly setting the endpoint.

Private link should work if you're using instance DNS and the resolution of the kinesis.<region>.amazaonaws.com resolves to the private link endpoint.

pfifer avatar Aug 23 '18 15:08 pfifer

It would be really nice to be able to override the kinesis endpoint with a simple setting in the properties file in e.g. the KCL for Python.

kojiromike avatar Oct 07 '18 13:10 kojiromike

I'm using the KCLrb to build a consumer application and I would like to +1 that it would be beneficial to set the kinesis endpoint via a setting in the properties file. 💯

Using KClrb in a docker container with kinesis-mock to isolate the producer/consumer workflow and I am blocked because my consumer can't connect to the internal network kinesis stream. I am able to override the credentials and region, it only makes sense to override the kinesis endpoint/host.

ghost avatar Oct 29 '21 17:10 ghost

@pfifer this is a really old and open enhancement. Is this still not supported?

ArasAzimi avatar Sep 26 '22 17:09 ArasAzimi