File tree Expand file tree Collapse file tree
modules/runners/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- set -euo pipefail
4-
53# macOS variant of start-runner.sh
64
75tag_instance_with_runner_id () {
@@ -112,18 +110,11 @@ token_path=$(echo "$parameters" | jq -r '.[] | select(.Name == "'$ssm_config_pat
112110echo " Retrieved /$ssm_config_path /token_path parameter - ($token_path )"
113111
114112echo " Get GH Runner config from AWS SSM"
115- config=$( aws ssm get-parameter \
116- --name " $token_path " /" $instance_id " \
117- --with-decryption \
118- --region " $region " | jq -r " .Parameter | .Value" )
119-
113+ config=$( aws ssm get-parameter --name " $token_path " /" $instance_id " --with-decryption --region " $region " | jq -r " .Parameter | .Value" )
120114while [[ -z " $config " ]]; do
121115 echo " Waiting for GH Runner config to become available in AWS SSM"
122116 sleep 1
123- config=$( aws ssm get-parameter \
124- --name " $token_path " /" $instance_id " \
125- --with-decryption \
126- --region " $region " | jq -r " .Parameter | .Value" )
117+ config=$( aws ssm get-parameter --name " $token_path " /" $instance_id " --with-decryption --region " $region " | jq -r " .Parameter | .Value" )
127118done
128119
129120echo " Delete GH Runner token from AWS SSM"
You can’t perform that action at this time.
0 commit comments