install-aws-server: Switch to 24.04.

This commit is contained in:
Alex Vandiver 2024-08-16 17:22:10 +00:00 committed by Tim Abbott
parent 3adedc9545
commit a5a898ba21
3 changed files with 5 additions and 2 deletions

View File

@ -0,0 +1,2 @@
deb http://www.ksplice.com/apt noble ksplice
deb-src http://www.ksplice.com/apt noble ksplice

View File

@ -0,0 +1 @@
deb https://apt.releases.teleport.dev/ubuntu noble stable/v16

View File

@ -112,8 +112,8 @@ DISK_SIZE=$(lookup disk_size)
# Determine the architecture # Determine the architecture
ARCH=$($AWS ec2 describe-instance-types --instance-types "$INSTANCE_TYPE" --query 'InstanceTypes[*].ProcessorInfo.SupportedArchitectures[0]' --output text) ARCH=$($AWS ec2 describe-instance-types --instance-types "$INSTANCE_TYPE" --query 'InstanceTypes[*].ProcessorInfo.SupportedArchitectures[0]' --output text)
# Lookup the latest 22.04 image # Lookup the latest 24.04 image
AMI_ID=$($AWS ec2 describe-images --owners 099720109477 --filters 'Name=name,Values=ubuntu/images/hvm-ssd/ubuntu-*-22.04*' "Name=architecture,Values=$ARCH" --query 'sort_by(Images, &CreationDate)[-1].ImageId' --output text) AMI_ID=$($AWS ec2 describe-images --owners 099720109477 --filters 'Name=name,Values=ubuntu/images/hvm-ssd-gp3/ubuntu-*-24.04*' "Name=architecture,Values=$ARCH" --query 'sort_by(Images, &CreationDate)[-1].ImageId' --output text)
# Verify it doesn't exist already # Verify it doesn't exist already
ZONE_NAME=$($AWS route53 get-hosted-zone --id "$AWS_ZONE_ID" | jq -r '.HostedZone.Name') ZONE_NAME=$($AWS route53 get-hosted-zone --id "$AWS_ZONE_ID" | jq -r '.HostedZone.Name')