Skip to content

Commit

Permalink
fix: add missing distro folder/namespace to s3 path (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
kb-newrelic authored Feb 7, 2025
1 parent fd0976e commit 71f99a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/terraform/modules/ec2/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ resource "aws_instance" "ubuntu" {
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip -q awscliv2.zip
./aws/install
deb_package_basepath='s3://${var.releases_bucket_name}/nrdot-collector-releases/${var.collector_version}/'
deb_package_basepath='s3://${var.releases_bucket_name}/nrdot-collector-releases/${var.collector_distro}/${var.collector_version}/'
latest_deb_package_filename=$(aws s3 ls $${deb_package_basepath} | sort -r | grep '${var.collector_distro}' | grep 'amd64.deb$' | head -n1 | awk '{print $NF}')
echo "Installing collector from: $${deb_package_basepath}$${latest_deb_package_filename}"
aws s3 cp "$${deb_package_basepath}$${latest_deb_package_filename}" /tmp/collector.deb
Expand Down

0 comments on commit 71f99a2

Please sign in to comment.