fix(inputs.kinesis_consumer): Honor the configured endpoint (#15788)
This commit is contained in:
parent
f693df81d3
commit
de24c1683c
|
|
@ -94,6 +94,10 @@ func (k *KinesisConsumer) connect(ac telegraf.Accumulator) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if k.EndpointURL != "" {
|
||||||
|
cfg.BaseEndpoint = &k.EndpointURL
|
||||||
|
}
|
||||||
client := kinesis.NewFromConfig(cfg)
|
client := kinesis.NewFromConfig(cfg)
|
||||||
|
|
||||||
k.checkpoint = &noopStore{}
|
k.checkpoint = &noopStore{}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue