Skip to content

Commit aab4ad9

Browse files
author
Lachlan Donald
authored
Merge pull request #625 from jradtilbrook/fix-get-parameter
Get SSM parameter as raw text
2 parents 61c747b + 2b68e63 commit aab4ad9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packer/linux/conf/bin/bk-install-elastic-stack.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ fi
102102

103103
# If the agent token path is set, use that instead of BUILDKITE_AGENT_TOKEN
104104
if [[ -n "${BUILDKITE_AGENT_TOKEN_PATH}" ]] ; then
105-
BUILDKITE_AGENT_TOKEN="$(aws ssm get-parameter --name "${BUILDKITE_AGENT_TOKEN_PATH}" --with-decryption --query Parameter.Value)"
105+
BUILDKITE_AGENT_TOKEN="$(aws ssm get-parameter --name "${BUILDKITE_AGENT_TOKEN_PATH}" --with-decryption --query Parameter.Value --output text)"
106106
fi
107107

108108
cat << EOF > /etc/buildkite-agent/buildkite-agent.cfg

0 commit comments

Comments
 (0)