From 2a550861518a337cb2b539a410cfc81e72c913c1 Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Wed, 10 Apr 2024 20:57:55 -0700 Subject: [PATCH] update windows script --- ci/release/aws/ensure.sh | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/ci/release/aws/ensure.sh b/ci/release/aws/ensure.sh index 19ab6141b..794675998 100755 --- a/ci/release/aws/ensure.sh +++ b/ci/release/aws/ensure.sh @@ -241,8 +241,9 @@ create_windows_amd64() { 'Name=instance-state-name,Values=pending,running,stopping,stopped' "Name=tag:Name,Values=$REMOTE_NAME" \ | jq -r '.Reservations[].Instances[].State.Name') if [ -z "$state" ]; then + # public AMIs are deprecated every few months so just search the latest Windows Server one for recreating sh_c aws ec2 run-instances \ - --image-id=ami-0c5300e833c2b32f3 \ + --image-id=ami-03ea14ccbeab7b2d5 \ --count=1 \ --instance-type=t3.medium \ --security-groups=windows \ @@ -441,19 +442,22 @@ init_remote_windows() { header "$REMOTE_NAME" wait_remote_host_windows + # rsync was broken in this script last ran on 4/10/24. + # had to upgrade with `pacman -Syyu rsync` after + init_ps1=$(cat < script` and then open it with vim FGCOLOR=3 bigheader "WARNING: WINDOWS INITIALIZATION MUST BE COMPLETED MANUALLY OVER RDP AND POWERSHELL!" warn '1. Obtain Windows RDP password with:'