Eduard Grinberg
Eduard Grinberg

Reputation: 337

Connecting to AWS timestream influxdb using instance name

I am using AWS Timestream for InfluxDB. I created an instance and want to connect to it from Lambda function. Now, i gave the names to my instances starting with {ENV} for each environment (dev/test/prod). But the influxdb client requires the url which contains the instance id instead of the name.

I would like my code to be generic and only replace the environment string to connect to correct instance. What would be the best way to do it?

Upvotes: 0

Views: 36

Answers (0)

Related Questions