We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4400a2e + b7fcda6 commit f2f9f0eCopy full SHA for f2f9f0e
packer/linux/conf/bin/bk-install-elastic-stack.sh
@@ -161,7 +161,10 @@ then
161
fi
162
chown buildkite-agent: "${BUILDKITE_AGENT_BUILD_PATH}"
163
164
+set +x # Don't leak the agent token into logs
165
+echo "Setting \$BUILDKITE_AGENT_TOKEN to the value stored in the SSM Parameter $BUILDKITE_AGENT_TOKEN_PATH"
166
BUILDKITE_AGENT_TOKEN="$(aws ssm get-parameter --name "${BUILDKITE_AGENT_TOKEN_PATH}" --with-decryption --query Parameter.Value --output text)"
167
+set -x
168
169
cat << EOF > /etc/buildkite-agent/buildkite-agent.cfg
170
name="${BUILDKITE_STACK_NAME}-${INSTANCE_ID}-%spawn"
0 commit comments