Skip to content

Commit

Permalink
fix: spacelift/worker-pool AMI User Data Docker Login (#913)
Browse files Browse the repository at this point in the history
  • Loading branch information
milldr authored Nov 23, 2023
1 parent 0854f4c commit f6fd67b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/spacelift/worker-pool/templates/user-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
spacelift() { (
set -e

$(aws --region ${ecr_region} ecr get-login --registry-ids ${ecr_account_id} --no-include-email)
aws ecr get-login-password --region ${ecr_region} \
| docker login --username AWS --password-stdin ${ecr_account_id}.dkr.ecr.${ecr_region}.amazonaws.com

docker pull ${spacelift_runner_image}

echo "Updating packages (security)" | tee -a /var/log/spacelift/info.log
Expand Down

0 comments on commit f6fd67b

Please sign in to comment.