Commit c73a47f5 authored by Martin Westergaard Lassen's avatar Martin Westergaard Lassen Committed by mwl

Added INSTANCE_PREFIX to S3 project hash to avoid url clashes between clusters in same EC2 region

parent ab0b937c
......@@ -606,9 +606,9 @@ function upload-server-tars() {
local project_hash=
local key=$(aws configure get aws_access_key_id)
if which md5 > /dev/null 2>&1; then
project_hash=$(md5 -q -s "${USER} ${key}")
project_hash=$(md5 -q -s "${USER} ${key} ${INSTANCE_PREFIX}")
else
project_hash=$(echo -n "${USER} ${key}" | md5sum | awk '{ print $1 }')
project_hash=$(echo -n "${USER} ${key} ${INSTANCE_PREFIX}" | md5sum | awk '{ print $1 }')
fi
AWS_S3_BUCKET="kubernetes-staging-${project_hash}"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment