Skip to content

Commit 4c37adc

Browse files
committed
Merge pull request #4250 from mboersma/polish-aws-provisioning
fix(contrib/aws): clarify proxy protocol error
2 parents 8f50e70 + 2b0c7b6 commit 4c37adc

1 file changed

Lines changed: 13 additions & 10 deletions

File tree

contrib/aws/provision-aws-cluster.sh

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -146,24 +146,27 @@ export DEISCTL_TUNNEL=$FIRST_INSTANCE
146146
# loop until etcd2 / fleet are up and running
147147
COUNTER=1
148148
until deisctl list >/dev/null; do
149-
if [ $COUNTER -gt $ATTEMPTS ];
150-
then echo_red "Timed out waiting for fleet, giving up"
149+
if [ $COUNTER -gt $ATTEMPTS ]; then
150+
echo_red "Timed out waiting for fleet, giving up"
151+
echo_red "Ensure that the private key in cloudformation.json"
152+
echo_red "is added to your ssh-agent."
151153
break
152154
fi
153155
echo "Waiting until fleet is up and running ..."
154156
sleep 5
155157
let COUNTER=COUNTER+1
156158
done
157159
158-
echo_green "Your Deis cluster has been successfully deployed to AWS CloudFormation and is started."
159-
echo_green "Please continue to follow the instructions in the documentation."
160-
161160
echo_green "Enabling proxy protocol"
162161
if ! deisctl config router set proxyProtocol=1; then
162+
echo_red "# WARNING: Enabling proxy protocol failed."
163+
echo_red "# Ensure that the private key in cloudformation.json is added to"
164+
echo_red "# your ssh-agent, then enable proxy protocol before continuing:"
163165
echo_red "#"
164-
echo_red "# Enabling proxy protocol failed, please enable proxy protocol "
165-
echo_red "# manually after finishing your deis cluster installation."
166-
echo_red "#"
167-
echo_red "# deisctl config router set proxyProtocol=1"
168-
echo_red "#"
166+
echo_red "# deisctl config router set proxyProtocol=1\n"
169167
fi
168+
169+
echo_green "Your Deis cluster was deployed to AWS CloudFormation as stack "$STACK_NAME".\n"
170+
echo_green "Now run this command in your shell:"
171+
echo_green "export DEISCTL_TUNNEL=$FIRST_INSTANCE"
172+
echo_green "and continue to follow the documentation for \"Installing the Deis Platform.\""

0 commit comments

Comments
 (0)