mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 01:47:41 +00:00
install-aws-server: Configurable disk size.
This commit is contained in:
committed by
Tim Abbott
parent
0288964884
commit
1522eeaebf
@@ -57,6 +57,7 @@ INSTANCE_TYPE=$(lookup instance_type)
|
|||||||
IAM_PROFILE=$(lookup iam_profile)
|
IAM_PROFILE=$(lookup iam_profile)
|
||||||
SSH_SECRET_ID=$(lookup ssh_secret_id)
|
SSH_SECRET_ID=$(lookup ssh_secret_id)
|
||||||
AZ=$(lookup availability_zone)
|
AZ=$(lookup availability_zone)
|
||||||
|
DISK_SIZE=$(lookup disk_size)
|
||||||
|
|
||||||
# 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')
|
||||||
@@ -78,7 +79,7 @@ EXTRA_ARGS+=(
|
|||||||
--security-group-ids $SECURITY_GROUPS
|
--security-group-ids $SECURITY_GROUPS
|
||||||
--monitoring Enabled=true
|
--monitoring Enabled=true
|
||||||
--placement "AvailabilityZone=$AZ"
|
--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
|
# Build up the provisioning script
|
||||||
|
|||||||
Reference in New Issue
Block a user