Skip to content
Permalink
Browse files
Merge pull request #36 from smgoller/develop
Fix credentials management.
  • Loading branch information
smgoller committed Jan 8, 2019
2 parents ac14c96 + affce80 commit 7c2be2beefd76ab048bdba886cd1f911be114368
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
@@ -19,7 +19,9 @@

TAG=${1}

export AWS_PROFILE="geode-benchmarks"
if [[ -z "${AWS_ACCESS_KEY_ID}" ]]; then
export AWS_PROFILE="geode-benchmarks"
fi

pushd ../../../
./gradlew destroyCluster --args "${TAG}"
@@ -21,7 +21,9 @@ set -e

TAG=${1}
COUNT=${2}
export AWS_PROFILE="geode-benchmarks"
if [[ -z "${AWS_ACCESS_KEY_ID}" ]]; then
export AWS_PROFILE="geode-benchmarks"
fi

pushd ../../../
./gradlew launchCluster --args "${TAG} ${COUNT}"
@@ -23,7 +23,10 @@ BRANCH=${2:-develop}
BENCHMARK_BRANCH=${3:-develop}
OUTPUT=${4:-output-${DATE}-${TAG}}
PREFIX="geode-performance-${TAG}"
export AWS_PROFILE="geode-benchmarks"

if [[ -z "${AWS_ACCESS_KEY_ID}" ]]; then
export AWS_PROFILE="geode-benchmarks"
fi

SSH_OPTIONS="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i ~/.ssh/geode-benchmarks/${TAG}.pem"
HOSTS=`aws ec2 describe-instances --query 'Reservations[*].Instances[*].PrivateIpAddress' --filter "Name=tag:geode-benchmarks,Values=${TAG}" --output text`

0 comments on commit 7c2be2b

Please sign in to comment.