install-aws-server: Configurable disk size.

This commit is contained in:
Alex Vandiver
2022-01-12 21:29:10 +00:00
committed by Tim Abbott
parent 0288964884
commit 1522eeaebf

View File

@@ -57,6 +57,7 @@ INSTANCE_TYPE=$(lookup instance_type)
IAM_PROFILE=$(lookup iam_profile)
SSH_SECRET_ID=$(lookup ssh_secret_id)
AZ=$(lookup availability_zone)
DISK_SIZE=$(lookup disk_size)
# Verify it doesn't exist already
ZONE_NAME=$($AWS route53 get-hosted-zone --id "$AWS_ZONE_ID" | jq -r '.HostedZone.Name')
@@ -78,7 +79,7 @@ EXTRA_ARGS+=(
--security-group-ids $SECURITY_GROUPS
--monitoring Enabled=true
--placement "AvailabilityZone=$AZ"
--block-device-mappings "DeviceName=/dev/sda1,Ebs={VolumeType=gp3,Throughput=125,Iops=3000,Encrypted=true}"
--block-device-mappings "DeviceName=/dev/sda1,Ebs={VolumeSize=$DISK_SIZE,VolumeType=gp3,Throughput=125,Iops=3000,Encrypted=true}"
)
# Build up the provisioning script