diff --git a/modules/runners/templates/start-runner-osx.sh b/modules/runners/templates/start-runner-osx.sh index a6da66116d..0607873309 100644 --- a/modules/runners/templates/start-runner-osx.sh +++ b/modules/runners/templates/start-runner-osx.sh @@ -66,6 +66,9 @@ if [ -z "$token" ]; then done fi +ami_id=$(curl -f -H "X-aws-ec2-metadata-token: $token" \ + http://169.254.169.254/latest/meta-data/ami-id) + region=$(curl -f -H "X-aws-ec2-metadata-token: $token" \ http://169.254.169.254/latest/dynamic/instance-identity/document | jq -r .region) echo "Retrieved REGION from AWS API ($region)" @@ -142,6 +145,10 @@ tee /opt/actions-runner/.setup_info <