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 {
|
||||
return err
|
||||
}
|
||||
|
||||
if k.EndpointURL != "" {
|
||||
cfg.BaseEndpoint = &k.EndpointURL
|
||||
}
|
||||
client := kinesis.NewFromConfig(cfg)
|
||||
|
||||
k.checkpoint = &noopStore{}
|
||||
|
|
|
|||
Loading…
Reference in New Issue