influxdata / influx-cli

CLI for managing resources in InfluxDB v2
MIT License
61 stars 23 forks source link

firstMile Onboarding - InfluxCLI - Update all OS downloads to include a URL with "latest" in the title - route to latest version #394

Closed Luckette closed 2 years ago

Luckette commented 2 years ago

Ask

In support of the firstMile Onboarding initiative to increase activated user accounts, we'd like InfluxCLI download links for all operating systems to include a URL with "latest" in the title that routes to the latest version of the CLI.

ACs

Example

change: https://dl.influxdata.com/influxdb/releases/influxdb2-client-2.3.0-linux-amd64.tar.gz

to: https://dl.influxdata.com/influxdb/releases/influxdb2-client-latest-linux-amd64.tar.gz

Luckette commented 2 years ago

FYI @kristinarobinson

dgnorton commented 2 years ago

@bnpfeife this is related to the InfluxCLI but probably doesn't involve a change to the CLI itself. Thoughts on the right way to have a "latest" link always download the latest version of the CLI? I think S3 buckets support a notion of symlinks or aliases. Could the process that pushes binaries also create "latest" aliases?

bnpfeife commented 2 years ago

Unfortunately, I couldn't find any information regarding S3 supporting symlinks.

We could use CloudFront and a Lambda function to rewrite the request location to point it at the correct artifact. Otherwise, there is CloudFront configuration that would allow us to setup redirections. The downside of these approaches is that they require active management. With each deployment, these would need to be rewritten with the updated artifact locations.

I think the easiest solution, would be to upload duplicate artifacts on each deployment. Since the latest artifact name is the same on each deployment, we would need to contact SRE about invalidating the CloudFront cache.

samhld commented 2 years ago

@tkyocum any thoughts on Brandon's comment here?

samhld commented 2 years ago

Closed via https://github.com/influxdata/influx-cli/pull/423